Add build info to settings scene.

This commit is contained in:
Maurice Parker
2019-04-26 14:04:52 -05:00
parent a6370d2c79
commit 76b922546c
5 changed files with 42 additions and 4 deletions

View File

@@ -26,6 +26,15 @@ class SettingsViewController: UITableViewController {
}
refreshIntervalLabel.text = AppDefaults.refreshInterval.description()
let buildLabel = UILabel(frame: CGRect(x: 20.0, y: 0.0, width: 0.0, height: 0.0))
buildLabel.font = UIFont.systemFont(ofSize: 11.0)
buildLabel.textColor = UIColor.gray
buildLabel.text = "\(Bundle.main.appName) v \(Bundle.main.versionNumber) (Build \(Bundle.main.buildNumber))"
buildLabel.sizeToFit()
buildLabel.translatesAutoresizingMaskIntoConstraints = false
tableView.tableFooterView = buildLabel
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {