Skip to content

Commit 9aa09ca

Browse files
authored
Merge pull request #82 from ps2/show-version
Show version on settings page as top section header
2 parents bdcd0c0 + 0a5f1d6 commit 9aa09ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Loop/View Controllers/SettingsTableViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ class SettingsTableViewController: UITableViewController, DailyValueScheduleTabl
294294
override func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
295295
switch Section(rawValue: section)! {
296296
case .Loop:
297-
return nil
297+
let version = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString")!
298+
return "Loop iOS v\(version)"
298299
case .Configuration:
299300
return NSLocalizedString("Configuration", comment: "The title of the configuration section in settings")
300301
case .Devices:

0 commit comments

Comments
 (0)