From 4609bd74a0dabe0b078590485c19343622aa2970 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Wed, 9 Dec 2015 14:03:05 +0800 Subject: [PATCH] private in Settings --- .../Settings/SettingsViewController.swift | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Yep/ViewControllers/Settings/SettingsViewController.swift b/Yep/ViewControllers/Settings/SettingsViewController.swift index efcf47c4..2b01f6cd 100644 --- a/Yep/ViewControllers/Settings/SettingsViewController.swift +++ b/Yep/ViewControllers/Settings/SettingsViewController.swift @@ -10,18 +10,18 @@ import UIKit class SettingsViewController: BaseViewController { - @IBOutlet weak var settingsTableView: UITableView! + @IBOutlet private weak var settingsTableView: UITableView! - let settingsUserCellIdentifier = "SettingsUserCell" - let settingsMoreCellIdentifier = "SettingsMoreCell" + private let settingsUserCellIdentifier = "SettingsUserCell" + private let settingsMoreCellIdentifier = "SettingsMoreCell" - var introduction: String { + private var introduction: String { get { return YepUserDefaults.introduction.value ?? NSLocalizedString("No Introduction yet.", comment: "") } } - let moreAnnotations: [[String: String]] = [ + private let moreAnnotations: [[String: String]] = [ [ "name": NSLocalizedString("Notifications & Privacy", comment: ""), "segue": "showNotifications", @@ -36,9 +36,9 @@ class SettingsViewController: BaseViewController { ], ] - let introAttributes = [NSFontAttributeName: YepConfig.Settings.introFont] + private let introAttributes = [NSFontAttributeName: YepConfig.Settings.introFont] - struct Listener { + private struct Listener { static let Introduction = "SettingsViewController.Introduction" } @@ -76,12 +76,11 @@ class SettingsViewController: BaseViewController { } } } - } extension SettingsViewController: UITableViewDataSource, UITableViewDelegate { - enum Section: Int { + private enum Section: Int { case User = 0 case More }