diff --git a/AltStore/Settings/Settings.storyboard b/AltStore/Settings/Settings.storyboard index 1d47289d..66d54cce 100644 --- a/AltStore/Settings/Settings.storyboard +++ b/AltStore/Settings/Settings.storyboard @@ -1,9 +1,9 @@ - + - + @@ -19,6 +19,13 @@ + @@ -483,6 +490,7 @@ + diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 3ad86e60..a822f80b 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -52,6 +52,8 @@ class SettingsViewController: UITableViewController @IBOutlet private var backgroundRefreshSwitch: UISwitch! + @IBOutlet private var versionLabel: UILabel! + override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } @@ -78,6 +80,15 @@ class SettingsViewController: UITableViewController debugModeGestureRecognizer.numberOfTouchesRequired = 3 self.tableView.addGestureRecognizer(debugModeGestureRecognizer) + if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String + { + self.versionLabel.text = NSLocalizedString(String(format: "AltStore %@", version), comment: "AltStore Version") + } + else + { + self.versionLabel.text = NSLocalizedString("AltStore", comment: "") + } + self.update() }