e.g.

HINT: You can dismiss the keyboard by adding calling a method called endEditing(true) on the textfield. Trigger this code when the user taps on one of the tip values like so:


E.g. Type 125.50 as the total bill in the billTextField.

Add a 20% tip

Split the bill between 5 people

Press the Calculate button and you should get the value 30.12 printed in the console.


SOLUTION

Check out the solution to this challenge step by cloning the project from the link below:

https://github.com/appbrewery/Tipsy-iOS13-Completed/tree/da9380730864e615f886addf0c921284aa75c7d9