add version number
This commit is contained in:
parent
07cd49449e
commit
4d7b0937c3
2 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class AboutTableViewController: BasicStaticTableViewController {
|
||||||
let view = UIView()
|
let view = UIView()
|
||||||
let footerLabel = UILabel(frame: CGRect(x: 8, y: 15, width: tableView.frame.width, height: 60))
|
let footerLabel = UILabel(frame: CGRect(x: 8, y: 15, width: tableView.frame.width, height: 60))
|
||||||
footerLabel.numberOfLines = 0
|
footerLabel.numberOfLines = 0
|
||||||
footerLabel.text = "pass for iOS\nBob Sun"
|
footerLabel.text = "pass for iOS \(Globals.version)\nBob Sun"
|
||||||
footerLabel.font = UIFont.preferredFont(forTextStyle: .footnote)
|
footerLabel.font = UIFont.preferredFont(forTextStyle: .footnote)
|
||||||
footerLabel.textColor = UIColor.lightGray
|
footerLabel.textColor = UIColor.lightGray
|
||||||
footerLabel.textAlignment = .center
|
footerLabel.textAlignment = .center
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,6 @@ class Globals {
|
||||||
static let sshPublicKeyURL = URL(fileURLWithPath: "\(documentPath)/ssh_key.pub")
|
static let sshPublicKeyURL = URL(fileURLWithPath: "\(documentPath)/ssh_key.pub")
|
||||||
static let sshPrivateKeyURL = URL(fileURLWithPath: "\(documentPath)/ssh_key")
|
static let sshPrivateKeyURL = URL(fileURLWithPath: "\(documentPath)/ssh_key")
|
||||||
static var passcodeConfiguration = PasscodeLockConfiguration()
|
static var passcodeConfiguration = PasscodeLockConfiguration()
|
||||||
|
static let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String
|
||||||
private init() { }
|
private init() { }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue