// // PreferencesTableViewController.swift // Tusker // // Created by Shadowfacts on 8/28/18. // Copyright © 2018 Shadowfacts. All rights reserved. // import UIKit class PreferencesTableViewController: UITableViewController { static func create() -> UINavigationController { guard let navigationController = UIStoryboard(name: "Preferences", bundle: nil).instantiateInitialViewController() as? UINavigationController else { fatalError() } return navigationController } @IBOutlet weak var defaultPostVisibilityLabel: UILabel! override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) defaultPostVisibilityLabel.text = Preferences.shared.defaultPostVisibility.displayName } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. } */ }