https://www.hackingwithswift.com/100/19
Includes solutions to the challenges.
UIButton, CALayer, IBAction
From Hacking with Swift:
- Try showing the player’s score in the navigation bar, alongside the flag to guess.
- Keep track of how many questions have been asked, and show one final alert controller after they have answered 10. This should show their final score.
- When someone chooses the wrong flag, tell them their mistake in your alert message – something like “Wrong! That’s the flag of France,” for example.