New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Typed SwiftUI navigation patterns for stacks, split views, sheets, tabs, and deep links on iOS 26.

skills.sh installs
4.6K
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers NavigationStack push routing, NavigationSplitView sidebars, sheet presentation, tab architecture, and deep link handling
  • Includes typed [Route] bindings, per-tab routers, presentationSizing options, and a Tab API with iOS 26 search and bottom accessory additions
  • Enforces a save/validate/discard gate on programmatic sheet dismissal and a parse, validate, commit sequence for deep links
  • Designed for SwiftUI apps targeting iOS 26 with Swift 6.3, backward-compatible to iOS 17 where noted

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill swiftui-navigation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SwiftUI Navigation

Navigation patterns for SwiftUI apps targeting iOS 26+ with Swift 6.3. Covers push navigation, multi-column layouts, sheet presentation, tab architecture, and deep linking. Patterns are backward-compatible to iOS 17 unless noted.

Contents

NavigationStack (Push Navigation)

Use NavigationStack with a typed [Route] binding for programmatic push navigation. Define routes as a Hashable enum and map them with .navigationDestination(for:); this keeps the path compile-time checked. Use NavigationPath only when one stack must hold heterogeneous route value types.

enum Route: Hashable {
    case item(id: Item.ID)
}

struct ContentView: View {
    @State private var path: [Route] = []
    let items: [Item]

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Mobile Apps, Frontend & UI Code
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 94

Similar to Swiftui Navigation

More Mobile Apps