Archived
CustomizationViewController now changes layout depending on the device's orientation
This commit is contained in:
@@ -12,6 +12,12 @@ class PersonalPlanViewController: PlanViewController {
|
||||
|
||||
let prefs = UserDefaults.standard
|
||||
|
||||
@IBAction func customize(_ sender: UIBarButtonItem) {
|
||||
if let s = storyboard?.instantiateViewController(withIdentifier: "Customize") as? CustomizationViewController {
|
||||
self.present(s, animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
let user = self.prefs.string(forKey: "username")
|
||||
|
||||
Reference in New Issue
Block a user