Question: Swift Language This should be like an app with two timers .The clock must have two buttons and two clocks. There must be an indicator

Swift Language

This should be like an app with two timers.The clock must have two buttons and two clocks. There must be an indicator as to which button is currently pressed/activated. This should switch when the other button is pressed. The clock opposite the pressed button should start running. When the clock on one side reaches zero, an indicator must alert the player on that side that they are out of time. The clock should stop when either side reaches zero. Only one clock should be running at a time. You should hard code the number of seconds that both clocks have to start to 30. There should be a way to reset the clock after time has run out. Comment your code as needed. For Extra Credit properly disable the button that has just been tapped so that it cannot be tapped again until the other button is pressed. This prevents you from accidentally pressing one of the buttons twice in a row to accidentally run additional timers which makes the clock run faster than it should.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!