Skip to content

Instantly share code, notes, and snippets.

@jacobsapps
Created February 20, 2026 12:29
Show Gist options
  • Select an option

  • Save jacobsapps/30cf62b3f62009b7e6cc2bfab87a3306 to your computer and use it in GitHub Desktop.

Select an option

Save jacobsapps/30cf62b3f62009b7e6cc2bfab87a3306 to your computer and use it in GitHub Desktop.
The Old World: SwiftUI Navigation
NavigationStack(path: $router.path) {
// ... root content
}
.navigationDestination(for: RouterDestination.self) { route in
switch route {
case .content(let note):
ContentView(viewModel: ...)
}
}
.sheet(item: $activeSheet) { sheet in
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment