Skip to content

This is a lightweight collection of Swift files demonstrating NavigationStack + NavigationPath with a centralized AppRouter, Route enum, session manager and simple deep link handler.

Notifications You must be signed in to change notification settings

gauravtakroro/SwiftUINavigationStackSkeleton

Repository files navigation

SwiftUINavigationStackSkeleton

This is a lightweight collection of Swift files demonstrating NavigationStack + NavigationPath with a centralized AppRouter, Route enum, session manager and simple deep link handler.

Usage

  1. Open Xcode (14.0+ recommended).

  2. Create a new SwiftUI iOS App project (set deployment target to iOS 16.0 or later).

  3. Replace the auto-generated ContentView.swift and App files 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
  4. Add the files to the Xcode project (File → Add Files to "...").

  5. Build & Run.

Deep link examples

  • myapp://settings
  • myapp://profile/101
  • myapp://home
  • myapp://web?url=https://apple.com

Notes

  • This is a skeleton for learning; replace simulated auth with real networking as needed.
  • If you want, I can produce a full Xcode .xcodeproj and sign the bundle identifier — say the word and I’ll generate it next.

About

This is a lightweight collection of Swift files demonstrating NavigationStack + NavigationPath with a centralized AppRouter, Route enum, session manager and simple deep link handler.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages