Skip to content

Commit 0a5f1d6

Browse files
committed
Show version on settings page as top section header
1 parent ea0afd7 commit 0a5f1d6

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)