In this project we’re going to build an app that lets the user build a private list of places on the map that they intend to visit one day, add a description for that place, look up interesting places that are nearby, and save it all to the iOS storage for later.
To make all that work will mean leveraging some skills you’ve met already, such as forms, sheets,
URLSession, but also teach you some new skills: how to embed maps in a SwiftUI app, how to store private data safely so that only an authenticated user can access it, how to load and save data outside of
UserDefaults, and more.
So, lots to learn and another great app to make! There is some bad news, though: embedding maps in SwiftUI means using coordinators. Yes, those coordinators.
Anyway, let’s get started with our techniques: create a new iOS project using the Single View App template, and name it BucketList. And now on to our techniques…
SPONSORED Are you tired of wasting time debugging your Swift app? Instabug’s SDK is here to help you minimize debugging time by providing you with complete device details, network logs, and reproduction steps with every bug report. All data is attached automatically, and it only takes a line of code to setup. Start your free trial now and get 3 months off exclusively for the Hacking with Swift Community.
Link copied to your pasteboard.