WWDC24 SALE: Save 50% on all my Swift books and bundles! >>

DAY 43

Project 9, part 1

Today kicks off another new technique project where we’ll be focusing on navigation. This is an area of SwiftUI we touched on just briefly in the previous project, but really lies at the core of practically every app you'll build.

As you'll see, navigation is really broken down into two major types: navigation driven by user interaction, and programmatic navigation that you trigger yourself. Both are important, and you'll find yourself mixing the two freely.

One thing you'll be exploring later on is the difference between using navigation and using sheets. Both matter, and you'll certainly use both on a regular occasion, but as you're working through these days I want you to think carefully about what each choice means and why you think you'd use one rather than the other – as John Maxwell said, "find your why and you'll find your way."

Today you have three topics to work through, in which you’ll learn a smarter, more flexible approach to navigation using navigation presentation values and the navigationDestination() modifier.

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!


Save 50% in my WWDC sale.

SAVE 50% To celebrate WWDC24, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

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.