mobileui-os 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/AGENTS.md +47 -0
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +78 -0
  4. package/bin/cli.mjs +375 -0
  5. package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
  6. package/knowledge/android/accessibility.md +333 -0
  7. package/knowledge/android/components-controls.md +270 -0
  8. package/knowledge/android/material-design-3.md +174 -0
  9. package/knowledge/android/navigation-patterns.md +212 -0
  10. package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
  11. package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
  12. package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
  13. package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
  14. package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
  15. package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
  16. package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
  17. package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
  18. package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
  19. package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
  20. package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
  21. package/knowledge/apple/Interaction-behaviour.md +1378 -0
  22. package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
  23. package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
  24. package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
  25. package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
  26. package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
  27. package/knowledge/apple/Patterns-templates-composition.md +647 -0
  28. package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
  29. package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
  30. package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
  31. package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
  32. package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
  33. package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
  34. package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
  35. package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
  36. package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
  37. package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
  38. package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
  39. package/knowledge/apple/accessibility.md +2162 -0
  40. package/knowledge/apple/color.md +1933 -0
  41. package/knowledge/apple/component-architecture.md +2208 -0
  42. package/knowledge/apple/components.md +2172 -0
  43. package/knowledge/apple/design-decision-framework.md +1883 -0
  44. package/knowledge/apple/design-review-engine.md +2108 -0
  45. package/knowledge/apple/design-tokens.md +1943 -0
  46. package/knowledge/apple/designing-for-ios.md +1680 -0
  47. package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
  48. package/knowledge/apple/hig-foundation.md +1806 -0
  49. package/knowledge/apple/iconography.md +1903 -0
  50. package/knowledge/apple/interaction-patterns.md +2513 -0
  51. package/knowledge/apple/interaction.md +2141 -0
  52. package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
  53. package/knowledge/apple/ios-components-and-controls.md +1634 -0
  54. package/knowledge/apple/ios-components-patterns.md +1343 -0
  55. package/knowledge/apple/ios-design-system-architecture.md +1520 -0
  56. package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
  57. package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
  58. package/knowledge/apple/ios-forms-and-input.md +1458 -0
  59. package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
  60. package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
  61. package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
  62. package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
  63. package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
  64. package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
  65. package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
  66. package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
  67. package/knowledge/apple/ios-search-and-discovery.md +1456 -0
  68. package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
  69. package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
  70. package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
  71. package/knowledge/apple/layout.md +2331 -0
  72. package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
  73. package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
  74. package/knowledge/apple/motion-and-animation.md +1698 -0
  75. package/knowledge/apple/motion.md +2087 -0
  76. package/knowledge/apple/navigation.md +2281 -0
  77. package/knowledge/apple/responsive-adaptive.md +2159 -0
  78. package/knowledge/apple/screen-architecture.md +2067 -0
  79. package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
  80. package/knowledge/apple/typography.md +1802 -0
  81. package/knowledge/apple/ui-ux inteligence audit.md +106 -0
  82. package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
  83. package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
  84. package/knowledge/apple/visual-materials.md +2189 -0
  85. package/package.json +53 -0
  86. package/principles/design-principles.md +37 -0
  87. package/principles/platform-principles.md +25 -0
  88. package/principles/ux-principles.md +16 -0
  89. package/references/official-links.md +11 -0
  90. package/skills/accessibility-engineer/SKILL.md +125 -0
  91. package/skills/analytics-engineer/SKILL.md +283 -0
  92. package/skills/animation-engineer/SKILL.md +316 -0
  93. package/skills/component-designer/SKILL.md +75 -0
  94. package/skills/component-library-engineer/SKILL.md +140 -0
  95. package/skills/component-library-ops/SKILL.md +155 -0
  96. package/skills/design-system/SKILL.md +77 -0
  97. package/skills/design-token-engineer/SKILL.md +203 -0
  98. package/skills/design-token-pipeline/SKILL.md +277 -0
  99. package/skills/device-lab-engineer/SKILL.md +387 -0
  100. package/skills/forms-engineer/SKILL.md +79 -0
  101. package/skills/internationalization-engineer/SKILL.md +256 -0
  102. package/skills/motion-designer/SKILL.md +77 -0
  103. package/skills/native-data-fetching/SKILL.md +50 -0
  104. package/skills/navigation-architect/SKILL.md +65 -0
  105. package/skills/performance-engineer/SKILL.md +250 -0
  106. package/skills/platform-specialist/SKILL.md +95 -0
  107. package/skills/pre-release-gate/SKILL.md +75 -0
  108. package/skills/screen-designer/SKILL.md +117 -0
  109. package/skills/security-engineer/SKILL.md +375 -0
  110. package/skills/skills.json +134 -0
  111. package/skills/testing-auditor/SKILL.md +62 -0
  112. package/skills/ui-architect/SKILL.md +86 -0
  113. package/skills/ui-implementer/SKILL.md +188 -0
  114. package/skills/ux-architect/SKILL.md +49 -0
  115. package/skills/ux-auditor/SKILL.md +52 -0
  116. package/skills/visual-auditor/SKILL.md +71 -0
  117. package/templates/audit-report.md +29 -0
  118. package/templates/design-tokens.ts +33 -0
  119. package/templates/screen-spec.md +61 -0
  120. package/workflows/new-screen.md +17 -0
  121. package/workflows/pre-release.md +21 -0
  122. package/workflows/redesign.md +14 -0
  123. package/workflows/ui-audit.md +22 -0
@@ -0,0 +1,2281 @@
1
+
2
+
3
+ ````md
4
+ # Apple Navigation Intelligence
5
+
6
+ > Agent knowledge module for iOS/iPadOS navigation architecture, navigation
7
+ > hierarchy, tabs, stacks, sheets, full-screen presentations, navigation bars,
8
+ > tab bars, deep links, state restoration, adaptive layouts, back behavior,
9
+ > modal hierarchy, and navigation decision-making.
10
+
11
+ Version: 1.0
12
+ Platform: iOS / iPadOS
13
+ Role: Navigation intelligence
14
+ Parent: knowledge/apple/iconography.md
15
+ Use with: MobileUI-OS
16
+
17
+
18
+ # 1. PURPOSE
19
+
20
+ Navigation defines how users move through an application.
21
+
22
+ It answers:
23
+
24
+ - Where am I?
25
+ - Where can I go?
26
+ - How do I go there?
27
+ - How do I return?
28
+ - What is temporary?
29
+ - What is persistent?
30
+ - What belongs to the current task?
31
+ - What belongs to the application structure?
32
+
33
+ A beautiful screen with poor navigation is still a poor application.
34
+
35
+
36
+ # 2. CORE PRINCIPLE
37
+
38
+ Navigation should make the application's information architecture visible.
39
+
40
+ Conceptually:
41
+
42
+ ```text
43
+ INFORMATION ARCHITECTURE
44
+ ↓
45
+ NAVIGATION MODEL
46
+ ↓
47
+ SCREEN HIERARCHY
48
+ ↓
49
+ PRESENTATION
50
+ ↓
51
+ INTERACTION
52
+ ````
53
+
54
+ # 3. NAVIGATION SHOULD FOLLOW MENTAL MODEL
55
+
56
+ Do not design navigation around implementation details.
57
+
58
+ Bad:
59
+
60
+ ```text
61
+ database table
62
+ ↓
63
+ navigation tab
64
+ ```
65
+
66
+ Better:
67
+
68
+ ```text
69
+ user goal
70
+ ↓
71
+ information architecture
72
+ ↓
73
+ navigation destination
74
+ ```
75
+
76
+ # 4. PRIMARY NAVIGATION
77
+
78
+ Primary navigation represents the major areas of the application.
79
+
80
+ Examples:
81
+
82
+ ```text
83
+ Home
84
+ Library
85
+ Search
86
+ Favorites
87
+ Settings
88
+ ```
89
+
90
+ These destinations should represent persistent user concepts.
91
+
92
+ # 5. PRIMARY NAVIGATION RULE
93
+
94
+ If users regularly switch between two areas:
95
+
96
+ ```text
97
+ Area A
98
+ ↔
99
+ Area B
100
+ ```
101
+
102
+ they may belong in primary navigation.
103
+
104
+ If an area is visited only as part of another task:
105
+
106
+ ```text
107
+ Parent
108
+ ↓
109
+ Task
110
+ ↓
111
+ Detail
112
+ ```
113
+
114
+ it usually belongs deeper in the navigation hierarchy.
115
+
116
+ # 6. TAB NAVIGATION
117
+
118
+ Tabs are appropriate for peer-level destinations.
119
+
120
+ Conceptually:
121
+
122
+ ```text
123
+ Tab A
124
+ Tab B
125
+ Tab C
126
+ Tab D
127
+ ```
128
+
129
+ All tabs should feel like siblings.
130
+
131
+ Avoid:
132
+
133
+ ```text
134
+ Home
135
+ Settings
136
+ Song Details
137
+ Edit Profile
138
+ ```
139
+
140
+ because these are different hierarchy levels.
141
+
142
+ # 7. TAB DESTINATIONS
143
+
144
+ A tab should answer:
145
+
146
+ > "What major area of the product is this?"
147
+
148
+ Good examples:
149
+
150
+ ```text
151
+ Home
152
+ Browse
153
+ Library
154
+ Search
155
+ Profile
156
+ ```
157
+
158
+ Poor examples:
159
+
160
+ ```text
161
+ Open file
162
+ Edit
163
+ Add item
164
+ Details
165
+ Confirm
166
+ ```
167
+
168
+ Those are actions or flows, not major destinations.
169
+
170
+ # 8. TAB STABILITY
171
+
172
+ Primary tabs should remain relatively stable.
173
+
174
+ Avoid changing the tab structure based on:
175
+
176
+ ```text
177
+ temporary state
178
+ individual screen
179
+ one-off feature
180
+ short-lived task
181
+ ```
182
+
183
+ Users depend on predictable navigation.
184
+
185
+ # 9. TAB BAR
186
+
187
+ The tab bar should provide persistent access to major destinations.
188
+
189
+ Conceptually:
190
+
191
+ ```text
192
+ ┌───────────────────────────────────┐
193
+ │ │
194
+ │ CONTENT │
195
+ │ │
196
+ ├───────────────────────────────────┤
197
+ │ Home Browse Library Search │
198
+ └───────────────────────────────────┘
199
+ ```
200
+
201
+ The content area changes while the primary navigation remains recognizable.
202
+
203
+ # 10. TAB LABELS
204
+
205
+ Use concise labels.
206
+
207
+ Prefer:
208
+
209
+ ```text
210
+ Library
211
+ Search
212
+ Settings
213
+ ```
214
+
215
+ over:
216
+
217
+ ```text
218
+ My Personal Music Library
219
+ Search Through Everything
220
+ Application Settings
221
+ ```
222
+
223
+ unless product context requires greater specificity.
224
+
225
+ # 11. TAB ICONS
226
+
227
+ Icons should reinforce the meaning of the label.
228
+
229
+ Do not use unrelated decorative icons merely to create visual variety.
230
+
231
+ # 12. TAB ICON + LABEL
232
+
233
+ For important primary navigation, icon + label often provides stronger recognition
234
+ than icon-only navigation.
235
+
236
+ The user should be able to identify the destination without interpreting an
237
+ ambiguous symbol.
238
+
239
+ # 13. TAB SELECTION
240
+
241
+ Selected tab state should be obvious through a combination of:
242
+
243
+ ```text
244
+ icon state
245
+ color
246
+ label emphasis
247
+ position
248
+ ```
249
+
250
+ Do not rely on color alone.
251
+
252
+ # 14. TAB COUNT
253
+
254
+ Keep primary navigation focused.
255
+
256
+ If the application has many major destinations:
257
+
258
+ ```text
259
+ A
260
+ B
261
+ C
262
+ D
263
+ E
264
+ F
265
+ G
266
+ ```
267
+
268
+ do not automatically create seven tabs.
269
+
270
+ Consider:
271
+
272
+ ```text
273
+ secondary navigation
274
+ more/overflow
275
+ hierarchical organization
276
+ search
277
+ contextual actions
278
+ ```
279
+
280
+ instead.
281
+
282
+ # 15. TAB BAR ANTI-PATTERN
283
+
284
+ Do not turn the tab bar into an action bar.
285
+
286
+ Bad:
287
+
288
+ ```text
289
+ Home
290
+ Search
291
+ +
292
+ Settings
293
+ ```
294
+
295
+ when "+" creates content rather than representing a destination.
296
+
297
+ A creation action may belong elsewhere depending on context.
298
+
299
+ # 16. NAVIGATION STACK
300
+
301
+ A navigation stack represents hierarchical movement.
302
+
303
+ Example:
304
+
305
+ ```text
306
+ Library
307
+ ↓
308
+ Album
309
+ ↓
310
+ Song
311
+ ↓
312
+ Lyrics
313
+ ```
314
+
315
+ The deeper the user navigates, the more specific the destination becomes.
316
+
317
+ # 17. STACK PRINCIPLE
318
+
319
+ A push should generally mean:
320
+
321
+ > "I am going deeper into this subject."
322
+
323
+ Not:
324
+
325
+ > "A temporary thing just appeared."
326
+
327
+ # 18. PUSH NAVIGATION
328
+
329
+ Use push navigation for:
330
+
331
+ ```text
332
+ list
333
+ ↓
334
+ detail
335
+
336
+ category
337
+ ↓
338
+ subcategory
339
+
340
+ library
341
+ ↓
342
+ album
343
+
344
+ settings
345
+ ↓
346
+ setting detail
347
+ ```
348
+
349
+ The previous context remains meaningful.
350
+
351
+ # 19. BACK NAVIGATION
352
+
353
+ Back means:
354
+
355
+ > "Return to the previous navigation context."
356
+
357
+ It should not mean:
358
+
359
+ ```text
360
+ cancel
361
+ delete
362
+ dismiss
363
+ exit application
364
+ ```
365
+
366
+ unless the platform context explicitly defines that behavior.
367
+
368
+ # 20. BACK STACK
369
+
370
+ The stack should represent actual user history.
371
+
372
+ Conceptually:
373
+
374
+ ```text
375
+ Home
376
+ ↓
377
+ Library
378
+ ↓
379
+ Album
380
+ ↓
381
+ Track
382
+ ```
383
+
384
+ Back:
385
+
386
+ ```text
387
+ Track
388
+ ↓
389
+ Album
390
+ ↓
391
+ Library
392
+ ↓
393
+ Home
394
+ ```
395
+
396
+ # 21. DO NOT DESTROY HISTORY RANDOMLY
397
+
398
+ Avoid navigation behavior such as:
399
+
400
+ ```text
401
+ Home
402
+ ↓
403
+ Detail
404
+ ↓
405
+ Back
406
+ ↓
407
+ completely unrelated screen
408
+ ```
409
+
410
+ unless the flow intentionally resets navigation state.
411
+
412
+ # 22. NAVIGATION BAR
413
+
414
+ A navigation bar communicates:
415
+
416
+ ```text
417
+ current context
418
+ navigation hierarchy
419
+ primary actions
420
+ ```
421
+
422
+ It may contain:
423
+
424
+ ```text
425
+ back
426
+ title
427
+ trailing actions
428
+ ```
429
+
430
+ Keep the hierarchy clear.
431
+
432
+ # 23. TITLE HIERARCHY
433
+
434
+ The title should represent the current destination.
435
+
436
+ Example:
437
+
438
+ ```text
439
+ Library
440
+ ```
441
+
442
+ then:
443
+
444
+ ```text
445
+ Album
446
+ ```
447
+
448
+ then:
449
+
450
+ ```text
451
+ Track
452
+ ```
453
+
454
+ Do not keep showing the root title when the user has navigated deep into the hierarchy
455
+ unless the design intentionally uses another model.
456
+
457
+ # 24. LARGE TITLES
458
+
459
+ Large titles can establish strong page identity.
460
+
461
+ Use them where:
462
+
463
+ ```text
464
+ destination is primary
465
+ screen has room
466
+ content benefits from strong hierarchy
467
+ ```
468
+
469
+ Avoid forcing large titles into dense utility screens.
470
+
471
+ # 25. COMPACT NAVIGATION
472
+
473
+ Compact navigation is useful when:
474
+
475
+ ```text
476
+ content density is high
477
+ screen width is limited
478
+ task requires more vertical space
479
+ ```
480
+
481
+ The navigation system should adapt rather than remain rigid.
482
+
483
+ # 26. SHEETS
484
+
485
+ A sheet represents a temporary layer over the current context.
486
+
487
+ Conceptually:
488
+
489
+ ```text
490
+ CURRENT CONTEXT
491
+ ↓
492
+ SHEET
493
+ ```
494
+
495
+ The underlying context still exists.
496
+
497
+ # 27. SHEET VS PUSH
498
+
499
+ Use push when:
500
+
501
+ ```text
502
+ user is going deeper
503
+ ```
504
+
505
+ Use a sheet when:
506
+
507
+ ```text
508
+ user is temporarily performing a related task
509
+ ```
510
+
511
+ Example:
512
+
513
+ ```text
514
+ Library
515
+ ↓
516
+ Album
517
+ ```
518
+
519
+ is usually hierarchical.
520
+
521
+ But:
522
+
523
+ ```text
524
+ Library
525
+ ↓
526
+ Sort Options
527
+ ```
528
+
529
+ may be better represented as a temporary presentation depending on complexity.
530
+
531
+ # 28. SHEET PRINCIPLE
532
+
533
+ A sheet should answer:
534
+
535
+ > "What temporary task or contextual decision is the user performing?"
536
+
537
+ # 29. SHEET CONTENT
538
+
539
+ Sheets can contain:
540
+
541
+ ```text
542
+ actions
543
+ filters
544
+ settings
545
+ forms
546
+ pickers
547
+ contextual tools
548
+ secondary workflows
549
+ ```
550
+
551
+ The complexity determines whether the sheet should remain compact or become a
552
+ larger presentation.
553
+
554
+ # 30. SHEET HEIGHT
555
+
556
+ Use the minimum presentation height that comfortably supports the content.
557
+
558
+ Do not make every sheet full-screen.
559
+
560
+ Conceptually:
561
+
562
+ ```text
563
+ small task
564
+ ↓
565
+ compact sheet
566
+
567
+ complex task
568
+ ↓
569
+ larger sheet
570
+
571
+ full workflow
572
+ ↓
573
+ full-screen presentation
574
+ ```
575
+
576
+ # 31. SHEET EXPANSION
577
+
578
+ If the task naturally grows:
579
+
580
+ ```text
581
+ compact
582
+ ↓
583
+ expanded
584
+ ```
585
+
586
+ allow the presentation model to support that progression where appropriate.
587
+
588
+ # 32. SHEET DISMISSAL
589
+
590
+ The user should understand how to leave a sheet.
591
+
592
+ Possible mechanisms:
593
+
594
+ ```text
595
+ dismiss
596
+ close
597
+ cancel
598
+ done
599
+ ```
600
+
601
+ Use terminology appropriate to the task.
602
+
603
+ # 33. CANCEL VS DONE
604
+
605
+ These are semantically different.
606
+
607
+ ```text
608
+ Cancel
609
+ ↓
610
+ leave without applying
611
+
612
+ Done
613
+ ↓
614
+ finish/apply
615
+ ```
616
+
617
+ Do not use "Done" when the user is actually abandoning a task.
618
+
619
+ # 34. FULL-SCREEN PRESENTATION
620
+
621
+ Use a full-screen presentation when the task requires significant focus or space.
622
+
623
+ Examples:
624
+
625
+ ```text
626
+ camera
627
+ immersive media
628
+ complex editor
629
+ onboarding
630
+ large creation workflow
631
+ ```
632
+
633
+ Do not make every secondary action full-screen.
634
+
635
+ # 35. FULL-SCREEN PRINCIPLE
636
+
637
+ Full-screen presentation communicates:
638
+
639
+ > "Focus on this experience."
640
+
641
+ Therefore use it intentionally.
642
+
643
+ # 36. MODALS
644
+
645
+ Modal presentations interrupt the underlying flow.
646
+
647
+ Use them for:
648
+
649
+ ```text
650
+ critical decisions
651
+ focused actions
652
+ short tasks
653
+ confirmation
654
+ ```
655
+
656
+ Avoid using modals for ordinary navigation.
657
+
658
+ # 37. MODAL OVERUSE
659
+
660
+ If every interaction opens:
661
+
662
+ ```text
663
+ modal
664
+ ↓
665
+ modal
666
+ ↓
667
+ modal
668
+ ```
669
+
670
+ the user loses their sense of place.
671
+
672
+ Prefer hierarchical navigation when the content is part of the application's
673
+ normal information structure.
674
+
675
+ # 38. MODAL DEPTH
676
+
677
+ Avoid stacking presentations unnecessarily:
678
+
679
+ ```text
680
+ Screen
681
+ ↓
682
+ Sheet
683
+ ↓
684
+ Sheet
685
+ ↓
686
+ Modal
687
+ ```
688
+
689
+ If this happens repeatedly, reconsider the information architecture.
690
+
691
+ # 39. PRESENTATION HIERARCHY
692
+
693
+ Think:
694
+
695
+ ```text
696
+ persistent navigation
697
+ ↓
698
+ hierarchical navigation
699
+ ↓
700
+ temporary presentation
701
+ ↓
702
+ critical interruption
703
+ ```
704
+
705
+ Use the least disruptive mechanism appropriate to the task.
706
+
707
+ # 40. NAVIGATION STATE
708
+
709
+ Navigation should be modeled as state.
710
+
711
+ Conceptually:
712
+
713
+ ```ts
714
+ navigationState = {
715
+ currentPath,
716
+ presentedSheet,
717
+ presentedFullScreen,
718
+ selectedTab,
719
+ }
720
+ ```
721
+
722
+ # 41. STATE SEPARATION
723
+
724
+ Do not mix:
725
+
726
+ ```text
727
+ navigation state
728
+ ```
729
+
730
+ with:
731
+
732
+ ```text
733
+ business state
734
+ ```
735
+
736
+ For example:
737
+
738
+ ```text
739
+ selectedAlbum
740
+ ```
741
+
742
+ is not necessarily the same thing as:
743
+
744
+ ```text
745
+ navigationPath
746
+ ```
747
+
748
+ # 42. DEEP LINKS
749
+
750
+ A deep link should map directly into the navigation hierarchy.
751
+
752
+ Example:
753
+
754
+ ```text
755
+ app
756
+ ↓
757
+ library
758
+ ↓
759
+ album
760
+ ↓
761
+ track
762
+ ```
763
+
764
+ A deep link should be capable of representing:
765
+
766
+ ```text
767
+ track
768
+ ```
769
+
770
+ without requiring the user to manually navigate through every previous screen.
771
+
772
+ # 43. DEEP LINK RESTORATION
773
+
774
+ When opening a deep link:
775
+
776
+ ```text
777
+ resolve destination
778
+ ↓
779
+ construct required navigation context
780
+ ↓
781
+ present destination
782
+ ```
783
+
784
+ The application should preserve enough context for meaningful back behavior.
785
+
786
+ # 44. DEEP LINK EXAMPLE
787
+
788
+ Conceptually:
789
+
790
+ ```text
791
+ myapp://album/123/track/456
792
+ ```
793
+
794
+ could produce:
795
+
796
+ ```text
797
+ Library
798
+ ↓
799
+ Album 123
800
+ ↓
801
+ Track 456
802
+ ```
803
+
804
+ rather than opening an isolated screen with no navigational context.
805
+
806
+ # 45. URL ROUTING
807
+
808
+ Navigation routes should have semantic meaning.
809
+
810
+ Prefer:
811
+
812
+ ```text
813
+ album/:id
814
+ track/:id
815
+ playlist/:id
816
+ ```
817
+
818
+ over implementation-oriented names such as:
819
+
820
+ ```text
821
+ screen7
822
+ pageDetails2
823
+ componentA
824
+ ```
825
+
826
+ # 46. NAVIGATION ROUTES
827
+
828
+ A project may maintain:
829
+
830
+ ```ts
831
+ routes = {
832
+ home: "/",
833
+ library: "/library",
834
+ album: "/library/album/:id",
835
+ track: "/library/track/:id",
836
+ }
837
+ ```
838
+
839
+ The exact syntax depends on the framework.
840
+
841
+ # 47. NAVIGATION OWNERSHIP
842
+
843
+ Each destination should have a clear owner.
844
+
845
+ Example:
846
+
847
+ ```text
848
+ App
849
+ ├── Main navigation
850
+ │ ├── Home
851
+ │ ├── Library
852
+ │ └── Search
853
+ │
854
+ └── Settings
855
+ ```
856
+
857
+ Avoid multiple unrelated navigation systems controlling the same destination.
858
+
859
+ # 48. NESTED NAVIGATION
860
+
861
+ Nested navigation can be useful.
862
+
863
+ Example:
864
+
865
+ ```text
866
+ Tab: Library
867
+ ↓
868
+ Library stack
869
+ ↓
870
+ Album
871
+ ↓
872
+ Track
873
+ ```
874
+
875
+ Each major tab may maintain its own navigation history.
876
+
877
+ # 49. TAB STATE RESTORATION
878
+
879
+ When switching:
880
+
881
+ ```text
882
+ Library
883
+ ↓
884
+ Album
885
+ ↓
886
+ Track
887
+
888
+ switch to Search
889
+
890
+ switch back to Library
891
+ ```
892
+
893
+ the user may reasonably expect to return to:
894
+
895
+ ```text
896
+ Track
897
+ ```
898
+
899
+ rather than:
900
+
901
+ ```text
902
+ Library root
903
+ ```
904
+
905
+ unless the product intentionally resets state.
906
+
907
+ # 50. TAB HISTORY
908
+
909
+ Each major navigation context can maintain independent history.
910
+
911
+ Conceptually:
912
+
913
+ ```text
914
+ Home stack
915
+ Library stack
916
+ Search stack
917
+ Profile stack
918
+ ```
919
+
920
+ This creates predictable navigation.
921
+
922
+ # 51. NAVIGATION RESET
923
+
924
+ Sometimes resetting is appropriate.
925
+
926
+ Examples:
927
+
928
+ ```text
929
+ logout
930
+ account switch
931
+ completed onboarding
932
+ security reset
933
+ major workflow completion
934
+ ```
935
+
936
+ Do not reset navigation simply because implementation is easier.
937
+
938
+ # 52. STATE RESTORATION
939
+
940
+ When the application leaves memory and later returns, restore meaningful context
941
+ when possible.
942
+
943
+ Potentially restore:
944
+
945
+ ```text
946
+ selected tab
947
+ navigation path
948
+ scroll position
949
+ presented content
950
+ ```
951
+
952
+ depending on application requirements.
953
+
954
+ # 53. SCROLL POSITION
955
+
956
+ Navigation and scroll restoration are related.
957
+
958
+ Example:
959
+
960
+ ```text
961
+ Library
962
+ ↓
963
+ scroll deep into list
964
+ ↓
965
+ open Album
966
+ ↓
967
+ back
968
+ ```
969
+
970
+ The user often expects their previous position to remain.
971
+
972
+ # 54. SCROLL RESTORATION RULE
973
+
974
+ Do not automatically reset the parent screen unless the user expects a fresh
975
+ context.
976
+
977
+ # 55. NAVIGATION TRANSITIONS
978
+
979
+ Transitions should communicate spatial or hierarchical relationships.
980
+
981
+ Conceptually:
982
+
983
+ ```text
984
+ push
985
+ ↓
986
+ move deeper
987
+
988
+ pop
989
+ ↓
990
+ return
991
+
992
+ sheet
993
+ ↓
994
+ temporary layer
995
+
996
+ dismiss
997
+ ↓
998
+ remove temporary layer
999
+ ```
1000
+
1001
+ # 56. TRANSITION CONSISTENCY
1002
+
1003
+ The same navigation relationship should generally use the same transition model.
1004
+
1005
+ Do not make:
1006
+
1007
+ ```text
1008
+ Screen A → B
1009
+ ```
1010
+
1011
+ slide in one place and fade in another without a reason.
1012
+
1013
+ # 57. TRANSITION DIRECTION
1014
+
1015
+ Directional movement can reinforce hierarchy.
1016
+
1017
+ For example:
1018
+
1019
+ ```text
1020
+ deeper
1021
+ →
1022
+ return
1023
+ ←
1024
+ ```
1025
+
1026
+ The exact animation depends on platform conventions.
1027
+
1028
+ # 58. DO NOT OVER-ANIMATE NAVIGATION
1029
+
1030
+ Navigation transitions should support orientation.
1031
+
1032
+ They should not become:
1033
+
1034
+ ```text
1035
+ large
1036
+ slow
1037
+ decorative
1038
+ ```
1039
+
1040
+ animations that delay the user.
1041
+
1042
+ # 59. BACK GESTURES
1043
+
1044
+ Interactive back gestures should feel continuous and predictable.
1045
+
1046
+ During a back gesture:
1047
+
1048
+ ```text
1049
+ current screen
1050
+ ↓
1051
+ interactive transition
1052
+ ↓
1053
+ previous screen
1054
+ ```
1055
+
1056
+ The user should understand that they are returning to the previous context.
1057
+
1058
+ # 60. BACK GESTURE SAFETY
1059
+
1060
+ Do not make destructive actions accidentally trigger through navigation gestures.
1061
+
1062
+ Important actions should require explicit interaction.
1063
+
1064
+ # 61. GESTURE CONFLICTS
1065
+
1066
+ Navigation gestures should not fight with:
1067
+
1068
+ ```text
1069
+ horizontal carousel
1070
+ horizontal pager
1071
+ swipe actions
1072
+ media scrubber
1073
+ drawing canvas
1074
+ ```
1075
+
1076
+ Resolve gesture ownership deliberately.
1077
+
1078
+ # 62. NAVIGATION + GESTURE PRIORITY
1079
+
1080
+ When gestures overlap:
1081
+
1082
+ ```text
1083
+ system navigation
1084
+ ↓
1085
+ navigation interaction
1086
+ ↓
1087
+ screen interaction
1088
+ ↓
1089
+ component interaction
1090
+ ```
1091
+
1092
+ should be considered as competing layers.
1093
+
1094
+ # 63. NAVIGATION ERRORS
1095
+
1096
+ If a destination cannot be loaded:
1097
+
1098
+ Do not leave the user in an undefined navigation state.
1099
+
1100
+ Provide:
1101
+
1102
+ ```text
1103
+ error context
1104
+ recovery action
1105
+ return path
1106
+ ```
1107
+
1108
+ Example:
1109
+
1110
+ ```text
1111
+ Unable to load album
1112
+ [Retry]
1113
+ [Back]
1114
+ ```
1115
+
1116
+ # 64. NOT FOUND
1117
+
1118
+ A missing destination should still provide navigational continuity.
1119
+
1120
+ Avoid dead-end screens with:
1121
+
1122
+ ```text
1123
+ 404
1124
+ ```
1125
+
1126
+ and no meaningful way back.
1127
+
1128
+ # 65. AUTHENTICATION FLOWS
1129
+
1130
+ Authentication often exists outside the main application navigation.
1131
+
1132
+ Conceptually:
1133
+
1134
+ ```text
1135
+ Launch
1136
+ ↓
1137
+ Authentication
1138
+ ↓
1139
+ Main application
1140
+ ```
1141
+
1142
+ After successful authentication, the application should establish the main
1143
+ navigation hierarchy.
1144
+
1145
+ # 66. AUTH FLOW RESET
1146
+
1147
+ After logout:
1148
+
1149
+ ```text
1150
+ authenticated navigation
1151
+ ↓
1152
+ destroy/reset
1153
+ ↓
1154
+ authentication flow
1155
+ ```
1156
+
1157
+ Sensitive authenticated navigation state should not remain accessible.
1158
+
1159
+ # 67. ONBOARDING
1160
+
1161
+ Onboarding is generally a temporary flow.
1162
+
1163
+ Conceptually:
1164
+
1165
+ ```text
1166
+ Launch
1167
+ ↓
1168
+ Onboarding
1169
+ ↓
1170
+ Main application
1171
+ ```
1172
+
1173
+ Once completed, users should not repeatedly encounter onboarding unless intended.
1174
+
1175
+ # 68. ONBOARDING NAVIGATION
1176
+
1177
+ Use explicit progress when the flow has multiple meaningful stages.
1178
+
1179
+ Example:
1180
+
1181
+ ```text
1182
+ 1 → 2 → 3 → Complete
1183
+ ```
1184
+
1185
+ Avoid unnecessary navigation complexity for a short onboarding experience.
1186
+
1187
+ # 69. SETTINGS NAVIGATION
1188
+
1189
+ Settings often work well as hierarchical navigation:
1190
+
1191
+ ```text
1192
+ Settings
1193
+ ↓
1194
+ Playback
1195
+ ↓
1196
+ Audio Quality
1197
+ ```
1198
+
1199
+ because each page represents a deeper configuration category.
1200
+
1201
+ # 70. SETTINGS PRINCIPLE
1202
+
1203
+ Do not put every setting on one giant screen.
1204
+
1205
+ Group related configuration.
1206
+
1207
+ Example:
1208
+
1209
+ ```text
1210
+ Playback
1211
+ Appearance
1212
+ Downloads
1213
+ Notifications
1214
+ Privacy
1215
+ Account
1216
+ ```
1217
+
1218
+ instead of one enormous list.
1219
+
1220
+ # 71. SEARCH NAVIGATION
1221
+
1222
+ Search can behave as:
1223
+
1224
+ ```text
1225
+ primary destination
1226
+ ```
1227
+
1228
+ or:
1229
+
1230
+ ```text
1231
+ contextual action
1232
+ ```
1233
+
1234
+ depending on the product.
1235
+
1236
+ If search is a core user activity, make it easy to access.
1237
+
1238
+ # 72. SEARCH RESULTS
1239
+
1240
+ A common structure:
1241
+
1242
+ ```text
1243
+ Search
1244
+ ↓
1245
+ Results
1246
+ ↓
1247
+ Detail
1248
+ ```
1249
+
1250
+ The search query should remain understandable while navigating deeper.
1251
+
1252
+ # 73. SEARCH STATE
1253
+
1254
+ When returning from a result:
1255
+
1256
+ ```text
1257
+ Search
1258
+ ↓
1259
+ Result
1260
+ ↓
1261
+ Back
1262
+ ```
1263
+
1264
+ preserve:
1265
+
1266
+ ```text
1267
+ query
1268
+ filters
1269
+ result position
1270
+ ```
1271
+
1272
+ when appropriate.
1273
+
1274
+ # 74. FILTERS
1275
+
1276
+ Filters often work well as temporary presentations.
1277
+
1278
+ Example:
1279
+
1280
+ ```text
1281
+ Search results
1282
+ ↓
1283
+ Filters sheet
1284
+ ```
1285
+
1286
+ After applying filters:
1287
+
1288
+ ```text
1289
+ sheet dismisses
1290
+ ↓
1291
+ results update
1292
+ ```
1293
+
1294
+ The user remains in the same primary context.
1295
+
1296
+ # 75. SORTING
1297
+
1298
+ Sorting can use:
1299
+
1300
+ ```text
1301
+ menu
1302
+ sheet
1303
+ popover
1304
+ contextual control
1305
+ ```
1306
+
1307
+ depending on complexity and device.
1308
+
1309
+ # 76. CONTEXTUAL MENUS
1310
+
1311
+ Use contextual menus for actions related to an existing object.
1312
+
1313
+ Example:
1314
+
1315
+ ```text
1316
+ Album
1317
+ ↓
1318
+ context menu
1319
+ ├── Play
1320
+ ├── Add to Queue
1321
+ ├── Share
1322
+ └── Delete
1323
+ ```
1324
+
1325
+ This keeps the primary interface clean.
1326
+
1327
+ # 77. CONTEXTUAL ACTIONS
1328
+
1329
+ Actions should remain attached to the object they affect.
1330
+
1331
+ Avoid forcing users to:
1332
+
1333
+ ```text
1334
+ object
1335
+ ↓
1336
+ navigate elsewhere
1337
+ ↓
1338
+ find action
1339
+ ↓
1340
+ return
1341
+ ```
1342
+
1343
+ when a contextual action would be clearer.
1344
+
1345
+ # 78. POPOVERS
1346
+
1347
+ Popover-style presentations can be appropriate for contextual choices on larger
1348
+ screens.
1349
+
1350
+ Examples:
1351
+
1352
+ ```text
1353
+ sorting
1354
+ filters
1355
+ format selection
1356
+ contextual actions
1357
+ ```
1358
+
1359
+ The presentation should remain anchored to its source when appropriate.
1360
+
1361
+ # 79. iPHONE VS IPAD
1362
+
1363
+ Navigation architecture should adapt to available space.
1364
+
1365
+ Do not treat iPad as:
1366
+
1367
+ ```text
1368
+ giant iPhone
1369
+ ```
1370
+
1371
+ Instead consider:
1372
+
1373
+ ```text
1374
+ additional navigation visibility
1375
+ multiple columns
1376
+ persistent context
1377
+ split views
1378
+ sidebar navigation
1379
+ ```
1380
+
1381
+ where appropriate.
1382
+
1383
+ # 80. COMPACT WIDTH
1384
+
1385
+ For narrow environments:
1386
+
1387
+ ```text
1388
+ primary navigation
1389
+ +
1390
+ single content hierarchy
1391
+ ```
1392
+
1393
+ may be appropriate.
1394
+
1395
+ # 81. REGULAR WIDTH
1396
+
1397
+ For wider environments:
1398
+
1399
+ ```text
1400
+ navigation
1401
+ │
1402
+ ├── list
1403
+ │
1404
+ └── detail
1405
+ ```
1406
+
1407
+ can remain visible simultaneously.
1408
+
1409
+ # 82. SPLIT VIEW
1410
+
1411
+ A split layout can expose hierarchical relationships simultaneously.
1412
+
1413
+ Example:
1414
+
1415
+ ```text
1416
+ ┌──────────┬──────────────┬──────────────┐
1417
+ │ Sidebar │ List │ Detail │
1418
+ │ │ │ │
1419
+ │ Library │ Albums │ Album Detail │
1420
+ │ Playlists│ Artists │ │
1421
+ └──────────┴──────────────┴──────────────┘
1422
+ ```
1423
+
1424
+ The exact number of columns should depend on content and available width.
1425
+
1426
+ # 83. ADAPTIVE NAVIGATION
1427
+
1428
+ Think:
1429
+
1430
+ ```text
1431
+ same information architecture
1432
+ ↓
1433
+ different spatial presentation
1434
+ ```
1435
+
1436
+ not:
1437
+
1438
+ ```text
1439
+ different application
1440
+ ```
1441
+
1442
+ between iPhone and iPad.
1443
+
1444
+ # 84. SIDEBAR
1445
+
1446
+ Sidebar navigation is appropriate when:
1447
+
1448
+ ```text
1449
+ many major destinations exist
1450
+ screen width is available
1451
+ persistent navigation improves productivity
1452
+ ```
1453
+
1454
+ Use semantic grouping.
1455
+
1456
+ # 85. SIDEBAR GROUPING
1457
+
1458
+ Example:
1459
+
1460
+ ```text
1461
+ Library
1462
+ Songs
1463
+ Albums
1464
+ Artists
1465
+
1466
+ Playlists
1467
+ Favorites
1468
+ Recently Added
1469
+
1470
+ Other
1471
+ Settings
1472
+ ```
1473
+
1474
+ Grouping reduces scanning cost.
1475
+
1476
+ # 86. SIDEBAR SELECTION
1477
+
1478
+ Selection should clearly identify the current destination.
1479
+
1480
+ Possible mechanisms:
1481
+
1482
+ ```text
1483
+ background
1484
+ tint
1485
+ icon
1486
+ label emphasis
1487
+ ```
1488
+
1489
+ Use a restrained combination.
1490
+
1491
+ # 87. SIDEBAR + DETAIL
1492
+
1493
+ On larger screens:
1494
+
1495
+ ```text
1496
+ selected navigation
1497
+ ↓
1498
+ persistent detail
1499
+ ```
1500
+
1501
+ can dramatically reduce navigation friction.
1502
+
1503
+ # 88. MASTER-DETAIL THINKING
1504
+
1505
+ The agent should recognize relationships such as:
1506
+
1507
+ ```text
1508
+ collection → item
1509
+ list → detail
1510
+ category → content
1511
+ ```
1512
+
1513
+ as candidates for split or master-detail presentation on larger screens.
1514
+
1515
+ # 89. NAVIGATION ON LARGE SCREENS
1516
+
1517
+ Do not simply center an iPhone-width screen inside an iPad.
1518
+
1519
+ Use available space to expose:
1520
+
1521
+ ```text
1522
+ navigation
1523
+ context
1524
+ relationships
1525
+ ```
1526
+
1527
+ when useful.
1528
+
1529
+ # 90. ORIENTATION
1530
+
1531
+ Navigation should survive:
1532
+
1533
+ ```text
1534
+ portrait
1535
+ landscape
1536
+ ```
1537
+
1538
+ without destroying the user's context.
1539
+
1540
+ Avoid unnecessary navigation resets when orientation changes.
1541
+
1542
+ # 91. KEYBOARD / POINTER NAVIGATION
1543
+
1544
+ On iPad and desktop-like environments:
1545
+
1546
+ Support logical movement between:
1547
+
1548
+ ```text
1549
+ sidebar
1550
+ content
1551
+ toolbar
1552
+ actions
1553
+ ```
1554
+
1555
+ when the platform supports keyboard/pointer input.
1556
+
1557
+ # 92. NAVIGATION ACCESSIBILITY
1558
+
1559
+ Users should be able to understand:
1560
+
1561
+ ```text
1562
+ current location
1563
+ available destinations
1564
+ navigation hierarchy
1565
+ selected destination
1566
+ ```
1567
+
1568
+ through assistive technologies.
1569
+
1570
+ # 93. ACCESSIBILITY NAVIGATION LABELS
1571
+
1572
+ Controls should expose meaningful names.
1573
+
1574
+ Bad:
1575
+
1576
+ ```text
1577
+ "Button 3"
1578
+ ```
1579
+
1580
+ Better:
1581
+
1582
+ ```text
1583
+ "Open Library"
1584
+ ```
1585
+
1586
+ or:
1587
+
1588
+ ```text
1589
+ "Back"
1590
+ ```
1591
+
1592
+ # 94. ACCESSIBILITY NAVIGATION ORDER
1593
+
1594
+ The accessibility traversal order should follow the logical information hierarchy.
1595
+
1596
+ Do not let decorative elements interrupt important navigation controls.
1597
+
1598
+ # 95. NAVIGATION + DYNAMIC TYPE
1599
+
1600
+ Large text should not destroy navigation.
1601
+
1602
+ If text expands:
1603
+
1604
+ ```text
1605
+ label
1606
+ ↓
1607
+ larger label
1608
+ ```
1609
+
1610
+ the layout should adapt rather than truncate important navigation information.
1611
+
1612
+ # 96. NAVIGATION + LOCALIZATION
1613
+
1614
+ Navigation labels must support longer localized strings.
1615
+
1616
+ Avoid rigid widths based on English text.
1617
+
1618
+ Bad:
1619
+
1620
+ ```text
1621
+ width: 80px
1622
+ ```
1623
+
1624
+ for every navigation label.
1625
+
1626
+ # 97. NAVIGATION + RTL
1627
+
1628
+ Navigation direction must respect layout direction.
1629
+
1630
+ Be particularly careful with:
1631
+
1632
+ ```text
1633
+ back
1634
+ forward
1635
+ chevrons
1636
+ arrows
1637
+ slide transitions
1638
+ ```
1639
+
1640
+ The semantic meaning should remain correct.
1641
+
1642
+ # 98. NAVIGATION ANALYTICS
1643
+
1644
+ Navigation architecture can be evaluated using:
1645
+
1646
+ ```text
1647
+ time to destination
1648
+ navigation depth
1649
+ backtracking
1650
+ dead ends
1651
+ abandonment
1652
+ ```
1653
+
1654
+ If users repeatedly navigate:
1655
+
1656
+ ```text
1657
+ A → B → C → B → C
1658
+ ```
1659
+
1660
+ the information architecture may need improvement.
1661
+
1662
+ # 99. NAVIGATION DEPTH
1663
+
1664
+ Deep navigation increases cognitive load.
1665
+
1666
+ Example:
1667
+
1668
+ ```text
1669
+ Home
1670
+ ↓
1671
+ Library
1672
+ ↓
1673
+ Collection
1674
+ ↓
1675
+ Category
1676
+ ↓
1677
+ Item
1678
+ ↓
1679
+ Details
1680
+ ↓
1681
+ Settings
1682
+ ```
1683
+
1684
+ If this becomes common, consider:
1685
+
1686
+ ```text
1687
+ direct actions
1688
+ contextual presentation
1689
+ search
1690
+ flattening hierarchy
1691
+ ```
1692
+
1693
+ where appropriate.
1694
+
1695
+ # 100. THREE-TAP THINKING
1696
+
1697
+ A useful heuristic:
1698
+
1699
+ > Important destinations should not require unnecessarily deep navigation.
1700
+
1701
+ This is a heuristic, not an absolute rule.
1702
+
1703
+ Complex tasks naturally require multiple steps.
1704
+
1705
+ # 101. NAVIGATION FRICTION
1706
+
1707
+ Friction can come from:
1708
+
1709
+ ```text
1710
+ too many screens
1711
+ ambiguous labels
1712
+ hidden actions
1713
+ unclear back behavior
1714
+ repeated confirmations
1715
+ unnecessary modals
1716
+ poor state restoration
1717
+ ```
1718
+
1719
+ Optimize the entire journey, not individual screens.
1720
+
1721
+ # 102. NAVIGATION REDUNDANCY
1722
+
1723
+ Do not expose the same destination through too many competing mechanisms unless
1724
+ there is a clear usability reason.
1725
+
1726
+ Example:
1727
+
1728
+ ```text
1729
+ tab
1730
+ sidebar
1731
+ floating button
1732
+ menu
1733
+ settings
1734
+ ```
1735
+
1736
+ all opening the same screen can create confusion.
1737
+
1738
+ # 103. PRIMARY VS SECONDARY ACTIONS
1739
+
1740
+ Navigation should not compete with task actions.
1741
+
1742
+ Example:
1743
+
1744
+ ```text
1745
+ Navigation:
1746
+ Library
1747
+
1748
+ Task action:
1749
+ Add Playlist
1750
+ ```
1751
+
1752
+ These are different concepts and should occupy different hierarchy levels.
1753
+
1754
+ # 104. FLOATING ACTIONS
1755
+
1756
+ Floating controls should represent meaningful contextual actions.
1757
+
1758
+ Do not use a floating button merely because:
1759
+
1760
+ ```text
1761
+ "Modern apps have floating buttons."
1762
+ ```
1763
+
1764
+ Its action must justify its visual prominence.
1765
+
1766
+ # 105. EMPTY STATES
1767
+
1768
+ Empty states should preserve navigation.
1769
+
1770
+ Example:
1771
+
1772
+ ```text
1773
+ No playlists yet
1774
+
1775
+ [Create Playlist]
1776
+ ```
1777
+
1778
+ The user should know:
1779
+
1780
+ ```text
1781
+ where they are
1782
+ what is missing
1783
+ what they can do next
1784
+ ```
1785
+
1786
+ rather than encountering a dead end.
1787
+
1788
+ # 106. ERROR STATES
1789
+
1790
+ Error states should preserve navigation context.
1791
+
1792
+ Example:
1793
+
1794
+ ```text
1795
+ Unable to load library
1796
+
1797
+ [Retry]
1798
+ ```
1799
+
1800
+ with a clear way back.
1801
+
1802
+ # 107. DESTRUCTIVE FLOWS
1803
+
1804
+ Destructive actions may require:
1805
+
1806
+ ```text
1807
+ context menu
1808
+ confirmation
1809
+ sheet
1810
+ alert
1811
+ ```
1812
+
1813
+ depending on severity.
1814
+
1815
+ Do not navigate the user away from the object unnecessarily.
1816
+
1817
+ # 108. CONFIRMATION
1818
+
1819
+ Ask for confirmation when:
1820
+
1821
+ ```text
1822
+ action is destructive
1823
+ action is difficult to undo
1824
+ consequences are significant
1825
+ ```
1826
+
1827
+ Avoid confirmations for trivial reversible actions.
1828
+
1829
+ # 109. UNDO
1830
+
1831
+ If an action is easily reversible, consider:
1832
+
1833
+ ```text
1834
+ perform action
1835
+ ↓
1836
+ provide undo
1837
+ ```
1838
+
1839
+ instead of forcing a confirmation before every action.
1840
+
1841
+ # 110. NAVIGATION AND UNDO
1842
+
1843
+ Navigation history and action history are different.
1844
+
1845
+ Do not treat:
1846
+
1847
+ ```text
1848
+ Back
1849
+ ```
1850
+
1851
+ as:
1852
+
1853
+ ```text
1854
+ Undo
1855
+ ```
1856
+
1857
+ Back changes location.
1858
+
1859
+ Undo reverses an operation.
1860
+
1861
+ # 111. COMMAND FLOW
1862
+
1863
+ For complex applications:
1864
+
1865
+ ```text
1866
+ user intent
1867
+ ↓
1868
+ destination
1869
+ ↓
1870
+ task
1871
+ ↓
1872
+ result
1873
+ ```
1874
+
1875
+ Navigation should help users understand where they are within that flow.
1876
+
1877
+ # 112. MULTI-STEP FLOWS
1878
+
1879
+ For tasks such as:
1880
+
1881
+ ```text
1882
+ Create
1883
+ ↓
1884
+ Configure
1885
+ ↓
1886
+ Review
1887
+ ↓
1888
+ Confirm
1889
+ ```
1890
+
1891
+ consider whether the user needs:
1892
+
1893
+ ```text
1894
+ single screen
1895
+ sheet
1896
+ stepper
1897
+ full-screen workflow
1898
+ ```
1899
+
1900
+ depending on complexity.
1901
+
1902
+ # 113. STEP INDICATORS
1903
+
1904
+ Use explicit progress when users benefit from knowing:
1905
+
1906
+ ```text
1907
+ current step
1908
+ remaining steps
1909
+ completion state
1910
+ ```
1911
+
1912
+ Do not add a step indicator to a simple two-screen flow.
1913
+
1914
+ # 114. NAVIGATION EXIT
1915
+
1916
+ Every temporary workflow should have a clear exit.
1917
+
1918
+ The user should be able to answer:
1919
+
1920
+ ```text
1921
+ "How do I get back?"
1922
+ ```
1923
+
1924
+ without experimentation.
1925
+
1926
+ # 115. NAVIGATION DEAD END TEST
1927
+
1928
+ For every screen ask:
1929
+
1930
+ ```text
1931
+ Where can I go?
1932
+ How did I get here?
1933
+ How do I go back?
1934
+ What happens if I cancel?
1935
+ What happens if something fails?
1936
+ ```
1937
+
1938
+ If these answers are unclear, navigation needs redesign.
1939
+
1940
+ # 116. NAVIGATION MODEL
1941
+
1942
+ A robust app can be modeled as:
1943
+
1944
+ ```text
1945
+ APPLICATION
1946
+ │
1947
+ ├── PRIMARY DESTINATIONS
1948
+ │
1949
+ ├── HIERARCHICAL DESTINATIONS
1950
+ │
1951
+ ├── TEMPORARY PRESENTATIONS
1952
+ │
1953
+ ├── CRITICAL INTERRUPTIONS
1954
+ │
1955
+ └── DEEP LINKS
1956
+ ```
1957
+
1958
+ # 117. NAVIGATION DECISION TREE
1959
+
1960
+ ```text
1961
+ Is this a major area of the app?
1962
+ │
1963
+ YES
1964
+ ↓
1965
+ Primary navigation
1966
+
1967
+ NO
1968
+ ↓
1969
+ Is this deeper content?
1970
+ │
1971
+ YES
1972
+ ↓
1973
+ Navigation stack
1974
+
1975
+ NO
1976
+ ↓
1977
+ Is this temporary/contextual?
1978
+ │
1979
+ YES
1980
+ ↓
1981
+ Sheet / popover
1982
+
1983
+ NO
1984
+ ↓
1985
+ Is this a focused workflow?
1986
+ │
1987
+ YES
1988
+ ↓
1989
+ Full-screen presentation
1990
+
1991
+ NO
1992
+ ↓
1993
+ Is this a critical decision?
1994
+ │
1995
+ YES
1996
+ ↓
1997
+ Alert / confirmation
1998
+ ```
1999
+
2000
+ # 118. NAVIGATION ARCHITECTURE CHECK
2001
+
2002
+ Before implementation, define:
2003
+
2004
+ ```text
2005
+ Primary destinations
2006
+ Navigation stacks
2007
+ Presented sheets
2008
+ Full-screen flows
2009
+ Deep links
2010
+ Back behavior
2011
+ State restoration
2012
+ Adaptive behavior
2013
+ Accessibility order
2014
+ ```
2015
+
2016
+ Do not begin coding navigation before this is understood.
2017
+
2018
+ # 119. ROUTE MAP
2019
+
2020
+ The agent should generate a route map before building a complex application.
2021
+
2022
+ Example:
2023
+
2024
+ ```text
2025
+ APP
2026
+ │
2027
+ ├── Home
2028
+ │ ├── Detail
2029
+ │ └── Activity
2030
+ │
2031
+ ├── Library
2032
+ │ ├── Albums
2033
+ │ │ └── Album Detail
2034
+ │ │ └── Track
2035
+ │ │
2036
+ │ └── Playlists
2037
+ │ └── Playlist Detail
2038
+ │
2039
+ ├── Search
2040
+ │ └── Search Result
2041
+ │ └── Detail
2042
+ │
2043
+ └── Settings
2044
+ ├── Playback
2045
+ ├── Appearance
2046
+ └── About
2047
+ ```
2048
+
2049
+ # 120. ROUTE OWNERSHIP
2050
+
2051
+ Each route should have:
2052
+
2053
+ ```text
2054
+ id
2055
+ destination
2056
+ parent
2057
+ presentation type
2058
+ parameters
2059
+ deep-link path
2060
+ access requirements
2061
+ ```
2062
+
2063
+ Conceptually:
2064
+
2065
+ ```ts
2066
+ route = {
2067
+ id: "album-detail",
2068
+ parent: "library",
2069
+ presentation: "push",
2070
+ parameter: "albumId",
2071
+ }
2072
+ ```
2073
+
2074
+ # 121. NAVIGATION CONTRACT
2075
+
2076
+ A navigation destination should define:
2077
+
2078
+ ```text
2079
+ inputs
2080
+ outputs
2081
+ presentation
2082
+ back behavior
2083
+ failure behavior
2084
+ ```
2085
+
2086
+ This makes navigation predictable for the agent and implementation.
2087
+
2088
+ # 122. EXAMPLE NAVIGATION CONTRACT
2089
+
2090
+ ```text
2091
+ Album Detail
2092
+
2093
+ Input:
2094
+ albumId
2095
+
2096
+ Presented:
2097
+ push from Library
2098
+
2099
+ Actions:
2100
+ Play
2101
+ Shuffle
2102
+ Add to Queue
2103
+ Share
2104
+
2105
+ Back:
2106
+ return to previous Library context
2107
+
2108
+ Failure:
2109
+ show loading/error state
2110
+
2111
+ Deep link:
2112
+ album/:id
2113
+ ```
2114
+
2115
+ # 123. AGENT IMPLEMENTATION RULE
2116
+
2117
+ The coding agent should never invent navigation architecture while implementing
2118
+ individual screens unless the project explicitly allows autonomous architecture
2119
+ decisions.
2120
+
2121
+ First inspect:
2122
+
2123
+ ```text
2124
+ route map
2125
+ navigation state
2126
+ design system
2127
+ platform requirements
2128
+ ```
2129
+
2130
+ Then implement.
2131
+
2132
+ # 124. NAVIGATION CONSISTENCY
2133
+
2134
+ If the same interaction appears throughout the app:
2135
+
2136
+ ```text
2137
+ open detail
2138
+ ```
2139
+
2140
+ it should normally use the same navigation mechanism.
2141
+
2142
+ Consistency reduces cognitive load.
2143
+
2144
+ # 125. NAVIGATION EXCEPTIONS
2145
+
2146
+ Break consistency only when:
2147
+
2148
+ ```text
2149
+ content relationship changes
2150
+ device size changes
2151
+ task importance changes
2152
+ presentation context changes
2153
+ ```
2154
+
2155
+ and the exception improves usability.
2156
+
2157
+ # 126. NAVIGATION ANTI-PATTERNS
2158
+
2159
+ Reject:
2160
+
2161
+ ```text
2162
+ random modal navigation
2163
+ tabs containing unrelated hierarchy levels
2164
+ deep navigation without back clarity
2165
+ destructive actions disguised as navigation
2166
+ unnecessary full-screen flows
2167
+ modal stacking
2168
+ resetting navigation state unnecessarily
2169
+ inconsistent transitions
2170
+ dead-end screens
2171
+ ambiguous navigation labels
2172
+ navigation duplicated everywhere
2173
+ ```
2174
+
2175
+ # 127. FINAL NAVIGATION PRINCIPLE
2176
+
2177
+ Navigation should make the user's mental model visible.
2178
+
2179
+ The user should feel:
2180
+
2181
+ ```text
2182
+ I know where I am.
2183
+ I know how I got here.
2184
+ I know where I can go.
2185
+ I know how to return.
2186
+ I know what is temporary.
2187
+ I know what is permanent.
2188
+ ```
2189
+
2190
+ If those statements are true, navigation is doing its job.
2191
+
2192
+ # 128. FINAL AGENT RULE
2193
+
2194
+ Before choosing a navigation mechanism, answer:
2195
+
2196
+ ```text
2197
+ What relationship does this destination have
2198
+ to the current context?
2199
+ ```
2200
+
2201
+ Then choose:
2202
+
2203
+ ```text
2204
+ peer destination
2205
+ → primary navigation
2206
+
2207
+ deeper destination
2208
+ → push/navigation stack
2209
+
2210
+ temporary contextual task
2211
+ → sheet/popover
2212
+
2213
+ focused workflow
2214
+ → full-screen presentation
2215
+
2216
+ critical interruption
2217
+ → alert/confirmation
2218
+ ```
2219
+
2220
+ Do not choose navigation based on what is easiest to code.
2221
+
2222
+ # 129. QUICK REFERENCE
2223
+
2224
+ ```text
2225
+ APP
2226
+ │
2227
+ ├── MAJOR AREAS
2228
+ │ ↓
2229
+ │ TAB / SIDEBAR
2230
+ │
2231
+ ├── DEEPER CONTENT
2232
+ │ ↓
2233
+ │ STACK
2234
+ │
2235
+ ├── TEMPORARY TASK
2236
+ │ ↓
2237
+ │ SHEET / POPOVER
2238
+ │
2239
+ ├── FOCUSED WORKFLOW
2240
+ │ ↓
2241
+ │ FULL SCREEN
2242
+ │
2243
+ └── CRITICAL DECISION
2244
+ ↓
2245
+ ALERT
2246
+ ```
2247
+
2248
+ Navigation is the spatial grammar of the application.
2249
+
2250
+ # 130. SOURCES
2251
+
2252
+ Apple Human Interface Guidelines:
2253
+
2254
+ [https://developer.apple.com/design/human-interface-guidelines/](https://developer.apple.com/design/human-interface-guidelines/)
2255
+
2256
+ Apple Design:
2257
+
2258
+ [https://developer.apple.com/design/](https://developer.apple.com/design/)
2259
+
2260
+ Apple Developer — Navigation:
2261
+
2262
+ [https://developer.apple.com/documentation/swiftui/navigation](https://developer.apple.com/documentation/swiftui/navigation)
2263
+
2264
+ Apple Developer — NavigationStack:
2265
+
2266
+ [https://developer.apple.com/documentation/swiftui/navigationstack](https://developer.apple.com/documentation/swiftui/navigationstack)
2267
+
2268
+ Apple Developer — TabView:
2269
+
2270
+ [https://developer.apple.com/documentation/swiftui/tabview](https://developer.apple.com/documentation/swiftui/tabview)
2271
+
2272
+ Apple Developer — Sheet:
2273
+
2274
+ [https://developer.apple.com/documentation/swiftui/view/sheet(ispresented:ondismiss:content](https://developer.apple.com/documentation/swiftui/view/sheet%28ispresented:ondismiss:content):)
2275
+
2276
+ Apple Developer — NavigationSplitView:
2277
+
2278
+ [https://developer.apple.com/documentation/swiftui/navigationsplitview](https://developer.apple.com/documentation/swiftui/navigationsplitview)
2279
+
2280
+ ````
2281
+