TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

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!

 

Hacking with Swift is sponsored by Blaze.

SPONSORED Still waiting on your CI build? Speed it up ~3x with Blaze - change one line, pay less, keep your existing GitHub workflows. First 25 HWS readers to use code HACKING at checkout get 50% off the first year. Try it now for free!

Reserve your spot now

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.