From the course: Programming for Non-programmers: iOS 17 and Swift 5

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Challenge: Clear button

Challenge: Clear button

- [Narrator] And now for the final challenge of the course. To write the functionality for the clear button. In order to finish the clear button, all we need to do is use the method that already exists to reset the app to its initial state. This challenge should just take a few minutes to complete. If you'd like some tips, stick around. First, we need to look at the starting values of all the variables, and then set those variables to their default values inside of the clear button method. Good luck.

Contents