SwiftUI Navigation Demystified
summary
Shows how replacing NavigationView with NavigationStack plus a stateful NavigationPath and NavigationLink(value:) actually enables programmatic navigation, popping to root by clearing the path, and requires making your models Hashable. Demonstrates modeling navigation as enum destinations kept in an ObservableObject so sheets/popovers/alerts can be triggered from deep links, and integrates the community SwiftUI-Navigation package (AT3) to map case paths to destinations so deep-linking and complex presentations work reliably.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:49What is navigation
- 3:36Navigation components
- 5:03Pre iOS 16 navigation
- 8:41Post iOS 16 navigation
- 10:27Live coding demo
- 15:56Navigation stack conversion
- 18:48Deep linking basics
- 21:40Other navigation components
- 22:26SwiftUI Navigation library
- 23:37Deep link demo
- 27:50Compiler-driven navigation
- 30:30Resources and closing
related talks
41mSwiftUI Tutorial 2024: Master Navigation - NavigationStack, NavigationPath & NavigationDestination
44mNavigation in SwiftUI
47mFlutter Navigation 2.0 in Real Life
42mBuilding with the Navigation SDK on iOS
32mOne navigator to rule them all
45mDynamic navigation in modularised iOS apps
50mAndroid Navigation at scale
38mFly Me To The View
