You can use a property called isSelected to make a button have a background and appear selected. Try adding this code in the tipChanged IBAction and running the app. When you tap on any of the tip buttons, the zero percent button should become selected.
Figure out how to make the tip button (zero/ten/twenty) that the user pressed become the selected button and make the others deselected.
E.g.
Figure out how to print the tip amount the user tapped on when the Calculate button is pressed. The tip percentage should be expressed as a decimal.
E.g. tap on 20% button, 20% button gets selected.
Next tap on the Calculate button, 0.2 gets 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/08a4e59c04dd1c9c82c4affde353b5b8bb1eb759