[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FECE4H3ZN5P6QS87HE93AF":3,"skill-same:01M6FECE4H3ZN5P6QS87HE93AF":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FECE4H3ZN5P6QS87HE93AF","ios-navigation",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-navigation\u002FSKILL.md",[],[18,19,20],"ios","navigation","ios navigation","2026-11-10 10:12:30",false,"# iOS Navigation (Modular MVVM-C)\n\nOpinionated navigation enforcement for SwiftUI apps using the clinic modular architecture. Focus on coordinator + route shell wiring, feature isolation, and resilient push\u002Fsheet\u002Fdeep-link flows.\n\n## Non-Negotiable Constraints (iOS 26 \u002F Swift 6.2)\n\n- `@Equatable` macro on every navigation view, `AnyView` never\n- `@Observable` everywhere, `ObservableObject` \u002F `@Published` never\n- App-target coordinators own `NavigationPath`; route shells own `.navigationDestination` mappings\n- Coordinator-owned modal state, inline `@State` booleans for sheets never\n- Domain layer defines coordinator protocols; concrete coordinators stay out of feature modules\n\n\n## Clinic Architecture Contract (iOS 26 \u002F Swift 6.2)\n\nAll guidance in this skill assumes the clinic modular MVVM-C architecture:\n\n- Feature modules import `Domain` + `DesignSystem` only (never `Data`, never sibling features)\n- App target is the convergence point and owns `DependencyContainer`, concrete coordinators, and Route Shell wiring\n- `Domain` stays pure Swift and defines models plus repository, `*Coordinating`, `ErrorRouting`, and `AppError` contracts\n- `Data` owns SwiftData\u002Fnetwork\u002Fsync\u002Fretry\u002Fbackground I\u002FO and implements Domain protocols\n- Read\u002Fwrite flow defaults to stale-while-revalidate reads and optimistic queued writes\n- ViewModels call repository protocols directly (no default use-case\u002Finteractor layer)\n\n## When to Apply\n\nReference these guidelines when:\n- Designing navigation hierarchies with NavigationStack or NavigationSplitView\n- Choosing between push, sheet, and fullScreenCover\n- Implementing hero animations, zoom transitions, or gesture-driven dismissals\n- Building multi-step flows (onboarding, checkout, registration)\n- Using @Observable with @Environment and @Bindable for shared navigation state\n- Reviewing code for navigation anti-patterns and modular architecture compliance\n- Adding deep linking, state restoration, or tab persistence\n- Ensuring VoiceOver and reduce motion support for navigation\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Navigation Architecture | CRITICAL | `arch-` |\n| 2 | Navigation Anti-Patterns | CRITICAL | `anti-` |\n\n| 3 | Transition & Animation | HIGH | `anim-` |\n| 4 | Modal Presentation | HIGH | `modal-` |\n| 5 | Flow Orchestration | HIGH | `flow-` |\n| 6 | Navigation Performance | MEDIUM-HIGH | `perf-` |\n| 7 | Navigation Accessibility | MEDIUM | `ally-` |\n| 8 | State & Restoration | MEDIUM | `state-` |\n\n## Quick Reference\n\n### 1. Navigation Architecture (CRITICAL)\n\n- [`arch-navigation-stack`](references\u002Farch-navigation-stack.md) - Use NavigationStack over deprecated NavigationView\n- [`arch-value-based-links`](references\u002Farch-value-based-links.md) - Use value-based NavigationLink over destination closures\n- [`arch-destination-registration`](references\u002Farch-destination-registration.md) - Register navigationDestination at stack root\n- [`arch-destination-item`](references\u002Farch-destination-item.md) - Use navigationDestination(item:) for optional-based navigation (iOS 26 \u002F Swift 6.2)\n- [`arch-route-enum`](references\u002Farch-route-enum.md) - Define routes as Hashable enums\n- [`arch-split-view`](references\u002Farch-split-view.md) - Use NavigationSplitView for multi-column layouts\n- [`arch-coordinator`](references\u002Farch-coordinator.md) - Extract navigation logic into Observable coordinator\n- [`arch-observable-environment`](references\u002Farch-observable-environment.md) - Use @Environment with @Observable and @Bindable for shared state\n- [`arch-deep-linking`](references\u002Farch-deep-linking.md) - Handle deep links by appending to NavigationPath\n- [`arch-navigation-path`](references\u002Farch-navigation-path.md) - Use NavigationPath for heterogeneous type-erased navigation\n- [`arch-equatable-views`](references\u002Farch-equatable-views.md) - Apply @Equatable macro to every navigation view\n- [`arch-observable-only`](references\u002Farch-observable-only.md) - Use @Observable only — never ObservableObject or @Published\n- [`arch-no-anyview`](references\u002Farch-no-anyview.md) - Never use AnyView in navigation — use @ViewBuilder or generics\n- [`arch-coordinator-modals`](references\u002Farch-coordinator-modals.md) - Present all modals via coordinator — never inline @State\n\n### 2. Navigation Anti-Patterns (CRITICAL)\n\n- [`anti-mixed-link-styles`](references\u002Fanti-mixed-link-styles.md) - Avoid mixing NavigationLink(destination:) with NavigationLink(value:)\n- [`anti-scattered-destinations`](references\u002Fanti-scattered-destinations.md) - Avoid scattering navigationDestination across views\n- [`anti-shared-stack`](references\u002Fanti-shared-stack.md) - Avoid sharing NavigationStack across tabs\n- [`anti-hidden-back-button`](references\u002Fanti-hidden-back-button.md) - Avoid hiding back button without preserving swipe gesture\n- [`anti-navigation-in-init`](references\u002Fanti-navigation-in-init.md) - Avoid heavy work in view initializers\n- [`anti-hamburger-menu`](references\u002Fanti-hamburger-menu.md) - Avoid hamburger menu navigation\n- [`anti-programmatic-tab-switch`](references\u002Fanti-programmatic-tab-switch.md) - Avoid programmatic tab selection changes\n\n### 3. Transition & Animation (HIGH)\n\n- [`anim-zoom-transition`](references\u002Fanim-zoom-transition.md) - Use zoom navigation transition for hero animations (iOS 18+)\n- [`anim-matched-geometry-same-view`](references\u002Fanim-matched-geometry-same-view.md) - Use matchedGeometryEffect only within same view hierarchy\n- [`anim-spring-config`](references\u002Fanim-spring-config.md) - Use modern spring animation syntax (iOS 26 \u002F Swift 6.2)\n- [`anim-gesture-driven`](references\u002Fanim-gesture-driven.md) - Use interactive spring animations for gesture-driven transitions\n- [`anim-transition-source-styling`](references\u002Fanim-transition-source-styling.md) - Style transition sources with shape and background\n- [`anim-reduce-motion-transitions`](references\u002Fanim-reduce-motion-transitions.md) - Respect reduce motion for all navigation animations\n- [`anim-scroll-driven`](references\u002Fanim-scroll-driven.md) - Use onScrollGeometryChange for scroll-driven transitions (iOS 18+)\n\n### 4. Modal Presentation (HIGH)\n\n- [`modal-sheet-vs-push`](references\u002Fmodal-sheet-vs-push.md) - Use push for drill-down, sheet for supplementary content\n- [`modal-detents`](references\u002Fmodal-detents.md) - Use presentation detents for contextual sheet sizing\n- [`modal-fullscreen-cover`](references\u002Fmodal-fullscreen-cover.md) - Use fullScreenCover only for immersive standalone experiences\n- [`modal-sheet-placement`](references\u002Fmodal-sheet-placement.md) - Place .sheet on container view, not on NavigationLink\n- [`modal-interactive-dismiss`](references\u002Fmodal-interactive-dismiss.md) - Guard unsaved changes with interactiveDismissDisabled\n- [`modal-nested-navigation`](references\u002Fmodal-nested-navigation.md) - Use separate NavigationStack inside modals\n\n### 5. Flow Orchestration (HIGH)\n\n- [`flow-tab-independence`](references\u002Fflow-tab-independence.md) - Give each tab its own NavigationStack\n- [`flow-multi-step`](references\u002Fflow-multi-step.md) - Use NavigationStack with route array for multi-step flows\n- [`flow-sidebar-navigation`](references\u002Fflow-sidebar-navigation.md) - Use NavigationSplitView with selection binding for sidebar\n- [`flow-tab-sidebar-adaptive`](references\u002Fflow-tab-sidebar-adaptive.md) - Use sidebarAdaptable TabView for iPad tab-to-sidebar (iOS 18+)\n- [`flow-pop-to-root`](references\u002Fflow-pop-to-root.md) - Implement pop-to-root by clearing NavigationPath\n- [`flow-screen-independence`](references\u002Fflow-screen-independence.md) - Keep screens independent of parent navigation context\n\n### 6. Navigation Performance (MEDIUM-HIGH)\n\n- [`perf-lazy-destinations`](references\u002Fperf-lazy-destinations.md) - Use value-based NavigationLink for lazy destination construction\n- [`perf-task-modifier`](references\u002Fperf-task-modifier.md) - Use .task for async data loading on navigation\n- [`perf-state-object-ownership`](references\u002Fperf-state-object-ownership.md) - Own @Observable state with @State, pass as plain property\n- [`perf-avoid-body-side-effects`](references\u002Fperf-avoid-body-side-effects.md) - Avoid side effects in view body\n\n\n### 7. Navigation Accessibility (MEDIUM)\n\n- [`ally-rotor-headers`](references\u002Fally-rotor-headers.md) - Mark navigation section headers for VoiceOver rotor\n- [`ally-focus-after-navigation`](references\u002Fally-focus-after-navigation.md) - Manage focus after programmatic navigation events\n- [`ally-group-navigation-elements`](references\u002Fally-group-navigation-elements.md) - Group related navigation elements to reduce swipe count\n- [`ally-hide-decorative-navigation`](references\u002Fally-hide-decorative-navigation.md) - Hide decorative navigation elements from VoiceOver\n- [`ally-keyboard-focus`](references\u002Fally-keyboard-focus.md) - Use @FocusState for keyboard navigation in forms\n\n### 8. State & Restoration (MEDIUM)\n\n- [`state-codable-routes`](references\u002Fstate-codable-routes.md) - Make route enums Codable for navigation persistence\n- [`state-scene-storage`](references\u002Fstate-scene-storage.md) - Use SceneStorage for per-scene navigation persistence\n- [`state-tab-persistence`](references\u002Fstate-tab-persistence.md) - Persist selected tab with SceneStorage\n- [`state-deep-link-urls`](references\u002Fstate-deep-link-urls.md) - Parse deep link URLs into route enums\n- [`state-avoid-app-level-path`](references\u002Fstate-avoid-app-level-path.md) - Avoid defining NavigationPath at App level\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fios-navigation",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ios-navigation",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ios-navigation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ios-navigation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-navigation\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]