askill
ios-navigation

ios-navigationSafety 100Repository

Opinionated SwiftUI navigation enforcement for iOS 26 / Swift 6.2 clinic modular MVVM-C apps. Enforces Domain coordinator protocols, App-target `DependencyContainer` + concrete coordinators + route shells, `NavigationPath` ownership, coordinator-owned modal state, deep-link/state-restoration readiness, and stale-while-revalidate/optimistic queued flow compatibility. Use when designing or refactoring clinic navigation flows.

43 stars
1.2k downloads
Updated 2/19/2026

Package Files

Loading files...
SKILL.md

iOS Navigation (Modular MVVM-C)

Opinionated navigation enforcement for SwiftUI apps using the clinic modular architecture. Focus on coordinator + route shell wiring, feature isolation, and resilient push/sheet/deep-link flows.

Non-Negotiable Constraints (iOS 26 / Swift 6.2)

  • @Equatable macro on every navigation view, AnyView never
  • @Observable everywhere, ObservableObject / @Published never
  • App-target coordinators own NavigationPath; route shells own .navigationDestination mappings
  • Coordinator-owned modal state, inline @State booleans for sheets never
  • Domain layer defines coordinator protocols; concrete coordinators stay out of feature modules

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

  • Feature modules import Domain + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
  • ViewModels call repository protocols directly (no default use-case/interactor layer)

When to Apply

Reference these guidelines when:

  • Designing navigation hierarchies with NavigationStack or NavigationSplitView
  • Choosing between push, sheet, and fullScreenCover
  • Implementing hero animations, zoom transitions, or gesture-driven dismissals
  • Building multi-step flows (onboarding, checkout, registration)
  • Using @Observable with @Environment and @Bindable for shared navigation state
  • Reviewing code for navigation anti-patterns and modular architecture compliance
  • Adding deep linking, state restoration, or tab persistence
  • Ensuring VoiceOver and reduce motion support for navigation

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Navigation ArchitectureCRITICALarch-
2Navigation Anti-PatternsCRITICALanti-

| 3 | Transition & Animation | HIGH | anim- | | 4 | Modal Presentation | HIGH | modal- | | 5 | Flow Orchestration | HIGH | flow- | | 6 | Navigation Performance | MEDIUM-HIGH | perf- | | 7 | Navigation Accessibility | MEDIUM | ally- | | 8 | State & Restoration | MEDIUM | state- |

Quick Reference

1. Navigation Architecture (CRITICAL)

2. Navigation Anti-Patterns (CRITICAL)

3. Transition & Animation (HIGH)

4. Modal Presentation (HIGH)

5. Flow Orchestration (HIGH)

6. Navigation Performance (MEDIUM-HIGH)

7. Navigation Accessibility (MEDIUM)

8. State & Restoration (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

75/100Analyzed 2/23/2026

Well-structured technical reference for SwiftUI navigation patterns with comprehensive rule categorization. Provides excellent taxonomy of navigation anti-patterns and best practices organized by priority. Main value is in the organizational framework and reference structure rather than step-by-step guidance - actual implementation details are deferred to external reference files. Highly opinionated toward specific architectural patterns (clinic modular MVVM-C, iOS 26/Swift 6.2) which limits generalizability but may suit targeted use cases. The experimental path and specialized architecture suggest internal/project-specific usage, though the underlying SwiftUI principles are broadly applicable.

100
85
60
65
70

Metadata

Licenseunknown
Version-
Updated2/19/2026
Publisherpproenca

Tags

No tags yet.