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

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 Superwall

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn More

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.