GuessTheFlag
This is a fully functioning Guess The Flag game that was a part of my 100 days of SwiftUI course with Paul Hudson.
In this app my challenges were:
Add an @State property to store the user’s score, modify it when they get an answer right or wrong, then display it in the alert and in the score label.
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.
Make the game show only 8 questions, at which point they see a final alert judging their score and can restart the game.