diff --git a/ProjectClock/Account.swift b/ProjectClock/Account.swift index 6924bee..9f62c8d 100644 --- a/ProjectClock/Account.swift +++ b/ProjectClock/Account.swift @@ -37,8 +37,8 @@ class AccountViewController: UIViewController */ func login() { - vLogin.isHidden = true - vManage.isHidden = false + vLogin.hide() + vManage.show() ManageVC.this.display() } @@ -51,8 +51,8 @@ class AccountViewController: UIViewController ["id", "user", "pass", "family"].forEach { localStorage.removeObject(forKey: $0) } // Switch UI - vLogin.isHidden = false - vManage.isHidden = true + vLogin.show() + vManage.hide() } } @@ -275,8 +275,8 @@ class FamilyVC: UIViewController if let _ = Family.fromLocal() { // Family exists - noFamilyView.isHidden = true - familyView.isHidden = false + noFamilyView.hide() + familyView.show() table.dataSource = self table.delegate = self @@ -284,8 +284,8 @@ class FamilyVC: UIViewController else { // Family doesn't exist - noFamilyView.isHidden = false - familyView.isHidden = true + noFamilyView.show() + familyView.hide() } } diff --git a/ProjectClock/AlarmActivationViewController.swift b/ProjectClock/AlarmActivationViewController.swift index 81b1c11..a9eae6c 100644 --- a/ProjectClock/AlarmActivationViewController.swift +++ b/ProjectClock/AlarmActivationViewController.swift @@ -60,9 +60,9 @@ class AlarmActivationViewController: UIViewController timeLabel.text = currentAlarm?.timeText // Hide all inactive wakemethods - puzzleView.isHidden = true - rpsView.isHidden = true - shakeView.isHidden = true + puzzleView.hide() + rpsView.hide() + shakeView.hide() // Play sound timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(AlarmActivationViewController.playSound), userInfo: nil, repeats: true) @@ -91,11 +91,11 @@ class AlarmActivationViewController: UIViewController { case "Factor": self.puzzleAnswers = factorAction(puzzleQuestionLabel: puzzleQuestionLabel) - puzzleView.isHidden = false + puzzleView.show() case "RPS": - rpsView.isHidden = false + rpsView.show() case "Shake": - shakeView.isHidden = false + shakeView.show() shakeAction() if regulate { endAlarm()