Part 3: SwiftUI Navigation
This part introduces you to implementing tab bars and modal view presentations in SwiftUI. You’ll enhance your understanding of using TabView
to navigate between views in compact iOS applications, integrating a tab bar with TabView
and tabItem
, crafting custom tab bars, and engaging deeply with modal views, including sheets, alerts, and popovers. The exploration continues into the realm of navigation within SwiftUI, starting with foundational concepts of iOS navigation and advancing to both programmatic and user-driven navigation strategies. With updates in Swift 4 and iOS 16 in mind, this part covers navigation across platforms, from the basics of NavigationView
and NavigationLink
, using .navigationDestination
to define navigation paths, to managing user-controlled and split-view navigations. It also includes insights into programmatic navigation with NavigationPath
and techniques for storing and restoring the navigation stack in the JSON format.