diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2020-10-29 14:29:50 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-02-24 14:28:01 +0100 |
| commit | 2af7cd841c5090e09cea9df70afa88ce5f1c05ef (patch) | |
| tree | 2589638b9e54cfe4ab1b4856bc2303c4f3bf9925 /ios | |
| parent | 1a789a006da5bbf788d8ca956fbcb96a0c884144 (diff) | |
| download | mullvadvpn-2af7cd841c5090e09cea9df70afa88ce5f1c05ef.tar.xz mullvadvpn-2af7cd841c5090e09cea9df70afa88ce5f1c05ef.zip | |
Use convenience method to access infoDictionary
Diffstat (limited to 'ios')
| -rw-r--r-- | ios/MullvadVPN/SettingsViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/SettingsViewController.swift b/ios/MullvadVPN/SettingsViewController.swift index 4f50245074..777e89e3b8 100644 --- a/ios/MullvadVPN/SettingsViewController.swift +++ b/ios/MullvadVPN/SettingsViewController.swift @@ -137,7 +137,7 @@ class SettingsViewController: UITableViewController, AccountViewControllerDelega let middleSection = StaticTableViewSection() let versionRow = StaticTableViewRow(reuseIdentifier: CellIdentifier.basicCell.rawValue) { (_, cell) in let cell = cell as! SettingsCell - let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String + let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String cell.titleLabel.text = NSLocalizedString("App version", comment: "") cell.detailTitleLabel.text = version |
