This project includes solutions to the challenges.
- Add a header to the third section, saying “Amount per person”.
- Add another section showing the total amount for the check – i.e., the original amount plus tip value, without dividing by the number of people.
- Change the tip percentage picker to show a new screen rather than using a segmented control, and give it a wider range of options – everything from 0% to 100%. Tip: use the range
0..<101
for your range rather than a fixed array.
Note: Screenshot 3 includes a feature that was added in from the Project 3 challenges.