This is a lightweight collection of Swift files demonstrating NavigationStack + NavigationPath with a centralized AppRouter, Route enum, session manager and simple deep link handler.
-
Open Xcode (14.0+ recommended).
-
Create a new SwiftUI iOS App project (set deployment target to iOS 16.0 or later).
-
Replace the auto-generated
ContentView.swiftandAppfiles or add the files from this ZIP into your project:- NavigationStackSkeletonApp.swift
- Models/Route.swift
- Router/AppRouter.swift
- Utils/DeepLinkHandler.swift
- Session/SessionManager.swift
- Views/*.swift
-
Add the files to the Xcode project (File → Add Files to "...").
-
Build & Run.
myapp://settingsmyapp://profile/101myapp://homemyapp://web?url=https://apple.com
- This is a skeleton for learning; replace simulated auth with real networking as needed.
- If you want, I can produce a full Xcode
.xcodeprojand sign the bundle identifier — say the word and I’ll generate it next.