UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

DAY 44

Project 9, part 2

Today we’re going to be continuing our look at SwiftUI’s navigation by moving beyond the basics – how to handle programmatic navigation, but also how to load and save navigation paths so you can restore your app's state.

That last part is a small but important part of app development, but sadly too many developers just don't take the time to get it right. Think about it: you use an app for a while, you navigate to something precise, and then you leave the app for a while to do something else. Wouldn't it be nice if things just came back as they were when you relaunched the app later on, even if "later on" actually means a few days later?

This is just one of today's topics, and I hope you take the time to get it right. As Ralph Waldo Emerson once said, “we aim above the mark to hit the mark" – it's always a good thing to do the best you can, because if you fall short you'll still be in a great place!

Anyway, enough chat – let’s get to it!

Today you have four topics to work through, in which you’ll learn about programmatic navigation, NavigationPath, Codable support, and more.

Share your progress!

If you use Twitter, the button below will prepare a tweet saying you completed today, along with a celebratory graphic, the URL to this page, and the challenge hashtag. Don't worry – it won't be sent until you confirm on Twitter!

Need help? Tweet me @twostraws!


Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

100 Days of SwiftUI

The 100 Days of SwiftUI is a free collection of videos, tutorials, tests, and more to help you learn SwiftUI faster. Click here to learn more, or watch the video below.

Back to 100 Days of SwiftUI

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.