Advanced Navigation with SwiftUI
In Chapter 2, we discussed working with the Observation framework. The Observation framework helps to manage communication between different parts of our app and is one of the fundamental building blocks of SwiftUI declarative programming. However, it is also one of the tools we will use to implement a good navigation system.
Why do we have a whole chapter about navigation? Isn’t it just showing a different view when the user selects an item in a list?
Navigation is a massive topic in mobile development. A standard app may have dozens of screens, and a more extensive one may have hundreds. Understanding how to manage the different routes in our app, which has so many screens, is crucial to our app’s success.
In this chapter, we will be doing the following:
- Understating why SwiftUI navigation is a challenge
- Exploring SwiftUI’s
NavigationStack
- Working with different data models to trigger navigation
- Working...