In this second SwiftUI project we’re going to be building a guessing game that helps users learn some of the many flags of the world.
This project is still going to be nice and easy, but gives me chance to introduce you to whole range of new SwiftUI functionality: stacks, buttons, images, alerts, asset catalogs, and more.
Our first app used a completely standard iOS look and feel, but here we’re going to make something more customized so you can see how easy it is with SwiftUI.
You’re going to need to download some files for this project, which you can do from GitHub: https://github.com/twostraws/HackingWithSwift – make sure you look in the SwiftUI section of the files.
Once you have those, go ahead and create a new App project in Xcode called GuessTheFlag, remembering to change your deployment target to iOS 15 or later. As before we’re going to be starting with an overview of the various SwiftUI technologies required to build the app, so let’s get into it…
SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.
Link copied to your pasteboard.