This was our biggest project yet, but we’ve covered a huge amount of ground: adding Comparable
to custom types, finding the documents directory, integrating MapKit, using biometric authentication, secure Data
writing, and much more. And of course you have another real app, and hopefully you’re able to complete the challenges below to take it further.
Between this and Instafilter you’ve now seen how to embed any part of UIKit into your app – any UIView
or UIViewController
can now be placed inside SwiftUI. This massively widens the types of apps you can build, as long as you’re able to spend the time learning some UIKit. Over time SwiftUI will grow and expand what it’s capable of, but right now it’s important to know its limits and play to its strengths!
Anyone can sit through a tutorial, but it takes actual work to remember what was taught. It’s my job to make sure you take as much from these tutorials as possible, so I’ve prepared a short review to help you check your learning.
Click here to review what you learned in this project.
One of the best ways to learn is to write your own code as often as possible, so here are three ways you should try extending this app to make sure you fully understand what’s going on.
if
condition in the middle of ContentView
isn’t easy to read – can you rewrite it so that the MapView
, Circle
, and Button
are part of their own view? This might take more work than you think!alert()
modifier to each view.SPONSORED Building and maintaining in-app subscription infrastructure is hard. Luckily there's a better way. With RevenueCat, you can implement subscriptions for your app in hours, not months, so you can get back to building your app.
Sponsor Hacking with Swift and reach the world's largest Swift community!
Link copied to your pasteboard.