Question: [SWIFT] 1. Create a new, Swift 5.1 project in Xcode 11; its UI should beformatted for the iPhone Xs. 2. Set the background of the

[SWIFT]

1. Create a new, Swift 5.1 project in Xcode 11; its UI should beformatted for the iPhone Xs.

2. Set the background of the root view to some pleasant color orunobtrusive

pattern/picture.

3. The gestures your app will recognizer are left swipe, rightswipe, tap, and pinch.

4. When the app begins, the screen displays only a Startbutton.

5. When the user taps on the Start button, the button disappearsand three other items

appear on the screen. They are: the current score (number of

gestures identified correctly), the time remaining (in seconds),and a gesture icon,

randomly-chosen from among the four possibilities. The timerbegins to count down

towards zero.

6. The user makes a gesture anywhere on the screen.

? If the user’s gesture matches that indicated by the icon,increment the score and

replace the icon with a randomly-chosen (but different) icon,and play continues.

? If the user makes a gesture that does not match the icon, donothing, and play

continues.

7. When the clock reaches zero, the three items on the screendisappear and a game over

item appear.

8. You are not required to add a Play Again? option, but you mayif you wish.

General notes

? Every UIView subclass has a Boolean property named isHidden.This property can be

set while the app is running to make views appear and disappearat your command.

? Be as creative or as simple as you like with your app’sformat, fonts, colors, etc.

? You may add music or sound effects, if you wish.

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 Programming Questions!