Starting to Implement Shake Action

This commit is contained in:
Dallon Archibald
2021-01-26 13:23:38 -05:00
parent 4a601dae66
commit b8aedfc28c
5 changed files with 29 additions and 0 deletions
@@ -23,6 +23,9 @@ class AlarmActivationViewController: UIViewController
@IBOutlet weak var rpsView: UIView!
@IBOutlet weak var rpsResult: UILabel!
//Shake Outlets
@IBOutlet weak var shakeView: UIView!
//Other Outlets
@IBOutlet weak var timeLabel: UILabel!
@IBOutlet weak var dateLabel: UILabel!
@@ -55,6 +58,7 @@ class AlarmActivationViewController: UIViewController
//Hide all inactive wakemethods
puzzleView.isHidden = true
rpsView.isHidden = true
shakeView.isHidden = true
timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(AlarmActivationViewController.playSound), userInfo: nil, repeats: true)
setAlarmType()
@@ -85,6 +89,9 @@ class AlarmActivationViewController: UIViewController
rpsView.isHidden = false
//Get Choice here
//rpsAction(choice: choice)
case "Shake":
shakeView.isHidden = false
shakeAction()
default:
print("Invalid alarm type")
}