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,2141 @@
1
+
2
+
3
+ ````md
4
+ # Apple Interaction Intelligence
5
+
6
+ > Agent knowledge module for designing intuitive, responsive, predictable,
7
+ > accessible, and platform-appropriate interactions for iOS and iPadOS.
8
+
9
+ Version: 1.0
10
+ Platform: iOS / iPadOS
11
+ Role: Interaction intelligence
12
+ Parent: knowledge/apple/components.md
13
+ Use with: MobileUI-OS
14
+
15
+ ---
16
+
17
+ # 1. PURPOSE
18
+
19
+ Interaction design defines what happens when the user acts.
20
+
21
+ It includes:
22
+
23
+ - taps
24
+ - presses
25
+ - swipes
26
+ - drags
27
+ - scrolling
28
+ - gestures
29
+ - navigation
30
+ - transitions
31
+ - feedback
32
+ - haptics
33
+ - loading
34
+ - interruption
35
+ - cancellation
36
+ - errors
37
+ - state changes
38
+
39
+ A visually beautiful interface can still feel poor if interaction behavior
40
+ is slow, unpredictable, or inconsistent.
41
+
42
+ ---
43
+
44
+ # 2. CORE PRINCIPLE
45
+
46
+ The interface should behave like the user expects.
47
+
48
+ Think:
49
+
50
+ ```text
51
+ USER INTENT
52
+ ↓
53
+ ACTION
54
+ ↓
55
+ IMMEDIATE FEEDBACK
56
+ ↓
57
+ STATE CHANGE
58
+ ↓
59
+ RESULT
60
+ ````
61
+
62
+ The user should rarely wonder:
63
+
64
+ ```text
65
+ Did that work?
66
+ What happened?
67
+ Where did it go?
68
+ Can I undo it?
69
+ How do I get back?
70
+ ```
71
+
72
+ ---
73
+
74
+ # 3. DIRECT MANIPULATION
75
+
76
+ Whenever practical, let users interact directly with the object they care
77
+ about.
78
+
79
+ Examples:
80
+
81
+ ```text
82
+ Photo
83
+ ↓
84
+ pinch to zoom
85
+
86
+ List item
87
+ ↓
88
+ swipe to act
89
+
90
+ Playlist
91
+ ↓
92
+ drag to reorder
93
+
94
+ Map
95
+ ↓
96
+ pan / zoom
97
+ ```
98
+
99
+ Direct manipulation reduces cognitive distance between intention and action.
100
+
101
+ ---
102
+
103
+ # 4. INTERACTION PREDICTABILITY
104
+
105
+ The same interaction should generally produce the same kind of result.
106
+
107
+ Example:
108
+
109
+ ```text
110
+ Swipe left
111
+ ↓
112
+ contextual actions
113
+ ```
114
+
115
+ should not mean:
116
+
117
+ ```text
118
+ Screen A → delete
119
+ Screen B → archive
120
+ Screen C → open
121
+ ```
122
+
123
+ unless the context clearly explains the difference.
124
+
125
+ ---
126
+
127
+ # 5. FEEDBACK LOOP
128
+
129
+ Every meaningful interaction should create feedback.
130
+
131
+ ```text
132
+ ACTION
133
+ ↓
134
+ FEEDBACK
135
+ ↓
136
+ STATE
137
+ ```
138
+
139
+ Feedback may be:
140
+
141
+ ```text
142
+ visual
143
+ haptic
144
+ audio
145
+ motion
146
+ text
147
+ ```
148
+
149
+ Use only what improves understanding.
150
+
151
+ ---
152
+
153
+ # 6. IMMEDIATE FEEDBACK
154
+
155
+ Do not leave users waiting without explanation.
156
+
157
+ Bad:
158
+
159
+ ```text
160
+ Tap
161
+ ↓
162
+ nothing
163
+ ↓
164
+ network request
165
+ ↓
166
+ result
167
+ ```
168
+
169
+ Better:
170
+
171
+ ```text
172
+ Tap
173
+ ↓
174
+ immediate pressed state
175
+ ↓
176
+ loading/progress
177
+ ↓
178
+ result
179
+ ```
180
+
181
+ ---
182
+
183
+ # 7. RESPONSE TIME PERCEPTION
184
+
185
+ Perceived responsiveness matters.
186
+
187
+ Even when an operation takes time, the interface should acknowledge the
188
+ action quickly.
189
+
190
+ Examples:
191
+
192
+ ```text
193
+ button pressed
194
+ → pressed feedback
195
+
196
+ favorite tapped
197
+ → icon changes immediately
198
+
199
+ download started
200
+ → progress appears
201
+ ```
202
+
203
+ The UI should not feel frozen while work happens.
204
+
205
+ ---
206
+
207
+ # 8. OPTIMISTIC UI
208
+
209
+ For low-risk reversible actions, consider updating the UI immediately.
210
+
211
+ Example:
212
+
213
+ ```text
214
+ Favorite
215
+ ↓
216
+ ❤️ immediately
217
+ ↓
218
+ server synchronization
219
+ ```
220
+
221
+ If synchronization fails:
222
+
223
+ ```text
224
+ restore state
225
+ +
226
+ explain failure
227
+ ```
228
+
229
+ Do not use optimistic updates for actions where premature state changes
230
+ could cause serious consequences.
231
+
232
+ ---
233
+
234
+ # 9. TAP
235
+
236
+ Tap is the fundamental mobile interaction.
237
+
238
+ Use taps for:
239
+
240
+ ```text
241
+ navigation
242
+ selection
243
+ buttons
244
+ activation
245
+ ```
246
+
247
+ The visual affordance should make the tappable area discoverable.
248
+
249
+ ---
250
+
251
+ # 10. TOUCH TARGETS
252
+
253
+ The visual element and interaction region are not necessarily the same size.
254
+
255
+ Example:
256
+
257
+ ```text
258
+ icon
259
+ ●
260
+ ┌──────────────┐
261
+ │ │
262
+ │ touch │
263
+ │ area │
264
+ │ │
265
+ └──────────────┘
266
+ ```
267
+
268
+ Small controls should still provide a comfortable interaction area.
269
+
270
+ ---
271
+
272
+ # 11. HIT SLOP
273
+
274
+ When implementation permits, interaction regions can extend beyond the
275
+ visual bounds.
276
+
277
+ Conceptually:
278
+
279
+ ```text
280
+ visual size
281
+ +
282
+ interaction padding
283
+ =
284
+ usable target
285
+ ```
286
+
287
+ Do not allow adjacent controls to become ambiguous.
288
+
289
+ ---
290
+
291
+ # 12. PRESSED STATE
292
+
293
+ Buttons and controls should acknowledge touch.
294
+
295
+ Possible feedback:
296
+
297
+ ```text
298
+ opacity change
299
+ scale
300
+ background change
301
+ material change
302
+ icon transition
303
+ haptic feedback
304
+ ```
305
+
306
+ Keep feedback subtle.
307
+
308
+ ---
309
+
310
+ # 13. PRESS ANIMATION
311
+
312
+ Avoid excessive scaling.
313
+
314
+ Bad:
315
+
316
+ ```text
317
+ button
318
+ ↓
319
+ shrinks dramatically
320
+ ↓
321
+ returns
322
+ ```
323
+
324
+ Better:
325
+
326
+ ```text
327
+ button
328
+ ↓
329
+ small visual response
330
+ ↓
331
+ returns
332
+ ```
333
+
334
+ The interaction should feel responsive rather than theatrical.
335
+
336
+ ---
337
+
338
+ # 14. LONG PRESS
339
+
340
+ Long press is useful for contextual actions.
341
+
342
+ Examples:
343
+
344
+ ```text
345
+ File
346
+ ↓
347
+ long press
348
+ ↓
349
+ context menu
350
+
351
+ Message
352
+ ↓
353
+ long press
354
+ ↓
355
+ actions
356
+
357
+ Playlist item
358
+ ↓
359
+ long press
360
+ ↓
361
+ context actions
362
+ ```
363
+
364
+ Do not hide essential functionality exclusively behind long press.
365
+
366
+ ---
367
+
368
+ # 15. LONG-PRESS DISCOVERABILITY
369
+
370
+ Long press is often undiscoverable.
371
+
372
+ If an important feature depends on it, consider providing another visible
373
+ path.
374
+
375
+ Example:
376
+
377
+ ```text
378
+ More button
379
+ +
380
+ long press
381
+ ```
382
+
383
+ rather than:
384
+
385
+ ```text
386
+ long press only
387
+ ```
388
+
389
+ for critical actions.
390
+
391
+ ---
392
+
393
+ # 16. SWIPE
394
+
395
+ Swipe is useful for:
396
+
397
+ ```text
398
+ dismissal
399
+ navigation
400
+ contextual actions
401
+ media control
402
+ carousel interaction
403
+ ```
404
+
405
+ The direction should make contextual sense.
406
+
407
+ ---
408
+
409
+ # 17. SWIPE ACTIONS
410
+
411
+ Example:
412
+
413
+ ```text
414
+ List item
415
+ ↓
416
+ swipe
417
+ ↓
418
+ Archive / Delete
419
+ ```
420
+
421
+ Actions should remain understandable.
422
+
423
+ Avoid destructive actions being too easy to trigger accidentally.
424
+
425
+ ---
426
+
427
+ # 18. SWIPE DISTANCE
428
+
429
+ The user should receive proportional feedback as the gesture progresses.
430
+
431
+ Conceptually:
432
+
433
+ ```text
434
+ gesture distance
435
+ ↓
436
+ visual response
437
+ ↓
438
+ threshold
439
+ ↓
440
+ action
441
+ ```
442
+
443
+ The user should understand whether the action will complete.
444
+
445
+ ---
446
+
447
+ # 19. DESTRUCTIVE SWIPES
448
+
449
+ Destructive swipe actions require extra care.
450
+
451
+ Consider:
452
+
453
+ ```text
454
+ confirmation
455
+ undo
456
+ strong visual distinction
457
+ ```
458
+
459
+ depending on reversibility.
460
+
461
+ Prefer undo when the operation is easily reversible.
462
+
463
+ ---
464
+
465
+ # 20. UNDO
466
+
467
+ Undo is often better than confirmation.
468
+
469
+ Example:
470
+
471
+ ```text
472
+ Delete
473
+ ↓
474
+ item disappears
475
+ ↓
476
+ Undo
477
+ ```
478
+
479
+ This allows fast interaction without forcing a confirmation dialog every
480
+ time.
481
+
482
+ ---
483
+
484
+ # 21. CONFIRMATION
485
+
486
+ Use confirmation when:
487
+
488
+ * action is destructive
489
+ * action is difficult to reverse
490
+ * consequences are significant
491
+ * user intent is ambiguous
492
+
493
+ Do not confirm every trivial action.
494
+
495
+ ---
496
+
497
+ # 22. GESTURES
498
+
499
+ Gestures should be:
500
+
501
+ ```text
502
+ purposeful
503
+ consistent
504
+ discoverable where important
505
+ interruptible
506
+ ```
507
+
508
+ Common gestures:
509
+
510
+ ```text
511
+ tap
512
+ double tap
513
+ long press
514
+ swipe
515
+ drag
516
+ pinch
517
+ rotate
518
+ edge swipe
519
+ ```
520
+
521
+ Do not add gestures simply to make the application feel advanced.
522
+
523
+ ---
524
+
525
+ # 23. GESTURE COST
526
+
527
+ Every hidden gesture creates learning cost.
528
+
529
+ Before adding a gesture ask:
530
+
531
+ ```text
532
+ Is the action frequent?
533
+ Is the gesture discoverable?
534
+ Is there another accessible path?
535
+ Can the gesture conflict with system gestures?
536
+ ```
537
+
538
+ ---
539
+
540
+ # 24. GESTURE CONFLICTS
541
+
542
+ Gestures can compete.
543
+
544
+ Example:
545
+
546
+ ```text
547
+ Horizontal swipe
548
+ +
549
+ Horizontal carousel
550
+ +
551
+ System navigation gesture
552
+ ```
553
+
554
+ This can create unpredictable behavior.
555
+
556
+ Always consider gesture ownership.
557
+
558
+ ---
559
+
560
+ # 25. GESTURE PRIORITY
561
+
562
+ When gestures overlap:
563
+
564
+ ```text
565
+ system gesture
566
+ ↓
567
+ navigation gesture
568
+ ↓
569
+ screen-level gesture
570
+ ↓
571
+ component gesture
572
+ ```
573
+
574
+ should be reasoned about intentionally.
575
+
576
+ Do not allow a child component to accidentally hijack a system-critical
577
+ gesture.
578
+
579
+ ---
580
+
581
+ # 26. SCROLLING
582
+
583
+ Scrolling should feel continuous and physical.
584
+
585
+ Consider:
586
+
587
+ ```text
588
+ velocity
589
+ deceleration
590
+ momentum
591
+ content size
592
+ overscroll
593
+ nested scrolling
594
+ ```
595
+
596
+ Avoid arbitrary custom scrolling physics unless the product genuinely needs
597
+ them.
598
+
599
+ ---
600
+
601
+ # 27. SCROLL POSITION
602
+
603
+ Preserve scroll position when returning to a context where doing so is
604
+ expected.
605
+
606
+ Example:
607
+
608
+ ```text
609
+ Library
610
+ ↓
611
+ scroll to album #50
612
+ ↓
613
+ open album
614
+ ↓
615
+ back
616
+ ↓
617
+ return near album #50
618
+ ```
619
+
620
+ Resetting the user to the top unexpectedly creates friction.
621
+
622
+ ---
623
+
624
+ # 28. SCROLLING + NAVIGATION
625
+
626
+ Navigation should preserve the user's mental context.
627
+
628
+ If they navigate deeper and return, the previous context should generally
629
+ remain understandable.
630
+
631
+ ---
632
+
633
+ # 29. PULL TO REFRESH
634
+
635
+ Pull-to-refresh is appropriate when content can meaningfully refresh.
636
+
637
+ Examples:
638
+
639
+ ```text
640
+ feed
641
+ library
642
+ messages
643
+ cloud data
644
+ ```
645
+
646
+ Do not use it where refresh has no meaningful concept.
647
+
648
+ ---
649
+
650
+ # 30. REFRESH FEEDBACK
651
+
652
+ Refresh should communicate:
653
+
654
+ ```text
655
+ gesture recognized
656
+ ↓
657
+ refresh started
658
+ ↓
659
+ refresh completed
660
+ ```
661
+
662
+ Avoid silent refreshes when the user explicitly requested an update.
663
+
664
+ ---
665
+
666
+ # 31. INFINITE SCROLL
667
+
668
+ Infinite scrolling is useful for:
669
+
670
+ ```text
671
+ feeds
672
+ large collections
673
+ search results
674
+ ```
675
+
676
+ But it should not become an excuse for poor information architecture.
677
+
678
+ Consider:
679
+
680
+ ```text
681
+ loading
682
+ pagination
683
+ error
684
+ retry
685
+ end of content
686
+ ```
687
+
688
+ ---
689
+
690
+ # 32. PAGINATION
691
+
692
+ Pagination may be preferable when:
693
+
694
+ * datasets are large
695
+ * users need position awareness
696
+ * loading must be controlled
697
+ * content has discrete pages
698
+
699
+ Choose based on the user's task.
700
+
701
+ ---
702
+
703
+ # 33. DRAG AND DROP
704
+
705
+ Drag-and-drop is appropriate for:
706
+
707
+ ```text
708
+ reordering
709
+ moving files
710
+ organizing items
711
+ transferring content
712
+ ```
713
+
714
+ The interface should communicate:
715
+
716
+ ```text
717
+ what is being dragged
718
+ where it can go
719
+ what will happen
720
+ ```
721
+
722
+ ---
723
+
724
+ # 34. DRAG FEEDBACK
725
+
726
+ During drag:
727
+
728
+ ```text
729
+ source
730
+ ↓
731
+ visual lift
732
+ ↓
733
+ drag preview
734
+ ↓
735
+ destination feedback
736
+ ```
737
+
738
+ The user should maintain spatial understanding of the object.
739
+
740
+ ---
741
+
742
+ # 35. REORDERING
743
+
744
+ For reorderable lists:
745
+
746
+ ```text
747
+ grab
748
+ ↓
749
+ lift
750
+ ↓
751
+ move
752
+ ↓
753
+ drop
754
+ ↓
755
+ new position
756
+ ```
757
+
758
+ Animation should preserve continuity.
759
+
760
+ Do not instantly teleport items to new positions without explaining the
761
+ change.
762
+
763
+ ---
764
+
765
+ # 36. DROP ZONES
766
+
767
+ Valid destinations should provide feedback.
768
+
769
+ Example:
770
+
771
+ ```text
772
+ drag item
773
+ ↓
774
+ valid target
775
+ ↓
776
+ highlight
777
+ ```
778
+
779
+ Invalid target:
780
+
781
+ ```text
782
+ drag item
783
+ ↓
784
+ invalid target
785
+ ↓
786
+ do not accept
787
+ ```
788
+
789
+ ---
790
+
791
+ # 37. PINCH
792
+
793
+ Pinch is appropriate for continuous visual scaling.
794
+
795
+ Examples:
796
+
797
+ ```text
798
+ photos
799
+ maps
800
+ documents
801
+ canvas
802
+ ```
803
+
804
+ Avoid pinch gestures for actions that require precise discrete control.
805
+
806
+ ---
807
+
808
+ # 38. ZOOM
809
+
810
+ Zoom should preserve the user's point of interest.
811
+
812
+ When zooming an image:
813
+
814
+ ```text
815
+ finger location
816
+ ↓
817
+ focus point
818
+ ↓
819
+ scale around point
820
+ ```
821
+
822
+ Do not arbitrarily zoom around the center if the user's gesture indicates
823
+ another focal point.
824
+
825
+ ---
826
+
827
+ # 39. DOUBLE TAP
828
+
829
+ Double tap can be useful for:
830
+
831
+ ```text
832
+ zoom
833
+ like/favorite
834
+ special media actions
835
+ ```
836
+
837
+ But it should not be required for essential functionality when a normal tap
838
+ could reasonably perform the action.
839
+
840
+ ---
841
+
842
+ # 40. GESTURE DISCOVERABILITY
843
+
844
+ If a gesture is important, consider:
845
+
846
+ ```text
847
+ onboarding
848
+ hint
849
+ visible alternative
850
+ contextual instruction
851
+ ```
852
+
853
+ Do not assume users know every gesture.
854
+
855
+ ---
856
+
857
+ # 41. EDGE GESTURES
858
+
859
+ Edge gestures can interact with system navigation.
860
+
861
+ Do not create custom edge gestures casually.
862
+
863
+ Always evaluate:
864
+
865
+ ```text
866
+ navigation
867
+ system gesture
868
+ nested content
869
+ gesture priority
870
+ ```
871
+
872
+ ---
873
+
874
+ # 42. HAPTIC FEEDBACK
875
+
876
+ Haptics can reinforce meaningful interactions.
877
+
878
+ Good candidates:
879
+
880
+ ```text
881
+ selection
882
+ successful completion
883
+ toggle state change
884
+ drag threshold
885
+ important confirmation
886
+ ```
887
+
888
+ Use sparingly.
889
+
890
+ ---
891
+
892
+ # 43. HAPTIC ANTI-PATTERN
893
+
894
+ Do not vibrate on everything.
895
+
896
+ Bad:
897
+
898
+ ```text
899
+ tap
900
+ → haptic
901
+
902
+ scroll
903
+ → haptic
904
+
905
+ open
906
+ → haptic
907
+
908
+ close
909
+ → haptic
910
+
911
+ every button
912
+ → haptic
913
+ ```
914
+
915
+ This destroys meaning.
916
+
917
+ ---
918
+
919
+ # 44. HAPTIC SEMANTICS
920
+
921
+ Different feedback should correspond to different meanings where appropriate.
922
+
923
+ Conceptually:
924
+
925
+ ```text
926
+ selection
927
+ ≠
928
+ success
929
+ ≠
930
+ warning
931
+ ```
932
+
933
+ The user should learn the relationship naturally.
934
+
935
+ ---
936
+
937
+ # 45. MOTION
938
+
939
+ Motion explains transitions.
940
+
941
+ Good motion answers:
942
+
943
+ ```text
944
+ Where did this come from?
945
+ Where did it go?
946
+ What changed?
947
+ What is connected?
948
+ ```
949
+
950
+ ---
951
+
952
+ # 46. MOTION AS CONTEXT
953
+
954
+ Example:
955
+
956
+ ```text
957
+ List item
958
+ ↓
959
+ Detail screen
960
+ ```
961
+
962
+ A meaningful transition can preserve the relationship.
963
+
964
+ Without context:
965
+
966
+ ```text
967
+ Screen A
968
+ ↓
969
+ Screen B
970
+ ```
971
+
972
+ the user may lose spatial understanding.
973
+
974
+ ---
975
+
976
+ # 47. TRANSITION CONTINUITY
977
+
978
+ Elements that conceptually persist across screens should feel connected.
979
+
980
+ Examples:
981
+
982
+ ```text
983
+ thumbnail
984
+ ↓
985
+ large artwork
986
+ ```
987
+
988
+ ```text
989
+ list item
990
+ ↓
991
+ detail title
992
+ ```
993
+
994
+ Motion can communicate continuity.
995
+
996
+ ---
997
+
998
+ # 48. TRANSITION SPEED
999
+
1000
+ Transitions should feel fast enough to avoid blocking the user.
1001
+
1002
+ Avoid:
1003
+
1004
+ ```text
1005
+ long cinematic transitions
1006
+ ```
1007
+
1008
+ for routine navigation.
1009
+
1010
+ Reserve dramatic motion for moments where it adds meaning.
1011
+
1012
+ ---
1013
+
1014
+ # 49. MOTION HIERARCHY
1015
+
1016
+ Not every element should animate independently.
1017
+
1018
+ Prefer:
1019
+
1020
+ ```text
1021
+ primary transition
1022
+ +
1023
+ small supporting movement
1024
+ ```
1025
+
1026
+ rather than:
1027
+
1028
+ ```text
1029
+ everything
1030
+ ↓
1031
+ animates
1032
+ ```
1033
+
1034
+ ---
1035
+
1036
+ # 50. REDUCED MOTION
1037
+
1038
+ Users may prefer reduced motion.
1039
+
1040
+ The application should respect reduced-motion preferences where possible.
1041
+
1042
+ Avoid relying on animation as the only way to communicate information.
1043
+
1044
+ ---
1045
+
1046
+ # 51. ANIMATION INTERRUPTION
1047
+
1048
+ Animations should handle interruption gracefully.
1049
+
1050
+ Example:
1051
+
1052
+ ```text
1053
+ open animation
1054
+ ↓
1055
+ user swipes back
1056
+ ↓
1057
+ animation reverses/interrupts naturally
1058
+ ```
1059
+
1060
+ Do not force the user to wait for a long animation to finish.
1061
+
1062
+ ---
1063
+
1064
+ # 52. STATE TRANSITIONS
1065
+
1066
+ UI state changes should be visually coherent.
1067
+
1068
+ Example:
1069
+
1070
+ ```text
1071
+ Play
1072
+ ↓
1073
+ Playing
1074
+ ↓
1075
+ Pause
1076
+ ```
1077
+
1078
+ Avoid abrupt unrelated changes that make the interface feel disconnected.
1079
+
1080
+ ---
1081
+
1082
+ # 53. COMPONENT STATE MACHINE
1083
+
1084
+ Complex components should be reasoned about as state machines.
1085
+
1086
+ Example:
1087
+
1088
+ ```text
1089
+ Idle
1090
+ ↓
1091
+ Pressed
1092
+ ↓
1093
+ Loading
1094
+ ↓
1095
+ Success
1096
+ ↓
1097
+ Idle
1098
+ ```
1099
+
1100
+ Alternative:
1101
+
1102
+ ```text
1103
+ Idle
1104
+ ↓
1105
+ Pressed
1106
+ ↓
1107
+ Error
1108
+ ↓
1109
+ Retry
1110
+ ```
1111
+
1112
+ This is especially important for asynchronous operations.
1113
+
1114
+ ---
1115
+
1116
+ # 54. NAVIGATION
1117
+
1118
+ Navigation should preserve a clear mental model.
1119
+
1120
+ The user should understand:
1121
+
1122
+ ```text
1123
+ where am I?
1124
+ where did I come from?
1125
+ where can I go?
1126
+ how do I return?
1127
+ ```
1128
+
1129
+ ---
1130
+
1131
+ # 55. HIERARCHICAL NAVIGATION
1132
+
1133
+ Use hierarchical navigation when content has:
1134
+
1135
+ ```text
1136
+ parent
1137
+ ↓
1138
+ child
1139
+ ↓
1140
+ detail
1141
+ ```
1142
+
1143
+ Example:
1144
+
1145
+ ```text
1146
+ Library
1147
+ ↓
1148
+ Album
1149
+ ↓
1150
+ Track
1151
+ ```
1152
+
1153
+ The back action should naturally return to the previous context.
1154
+
1155
+ ---
1156
+
1157
+ # 56. MODAL NAVIGATION
1158
+
1159
+ Use modal presentation when the user is entering a temporary task or focused
1160
+ workflow.
1161
+
1162
+ Example:
1163
+
1164
+ ```text
1165
+ Music Library
1166
+ ↓
1167
+ Create Playlist
1168
+ ↓
1169
+ finish / cancel
1170
+ ↓
1171
+ return to library
1172
+ ```
1173
+
1174
+ ---
1175
+
1176
+ # 57. MODAL VS PUSH
1177
+
1178
+ Ask:
1179
+
1180
+ ```text
1181
+ Is this a new destination?
1182
+ ```
1183
+
1184
+ If yes:
1185
+
1186
+ ```text
1187
+ navigation
1188
+ ```
1189
+
1190
+ Ask:
1191
+
1192
+ ```text
1193
+ Is this a temporary task?
1194
+ ```
1195
+
1196
+ If yes:
1197
+
1198
+ ```text
1199
+ modal/sheet
1200
+ ```
1201
+
1202
+ This distinction prevents navigation chaos.
1203
+
1204
+ ---
1205
+
1206
+ # 58. BACK BEHAVIOR
1207
+
1208
+ Back should generally mean:
1209
+
1210
+ ```text
1211
+ return to previous context
1212
+ ```
1213
+
1214
+ It should not randomly:
1215
+
1216
+ ```text
1217
+ close app
1218
+ reset state
1219
+ return home
1220
+ ```
1221
+
1222
+ unless the product's navigation architecture explicitly requires it.
1223
+
1224
+ ---
1225
+
1226
+ # 59. DEEP NAVIGATION
1227
+
1228
+ Avoid unnecessarily deep flows.
1229
+
1230
+ Bad:
1231
+
1232
+ ```text
1233
+ Home
1234
+ ↓
1235
+ Library
1236
+ ↓
1237
+ Category
1238
+ ↓
1239
+ Collection
1240
+ ↓
1241
+ Item
1242
+ ↓
1243
+ Settings
1244
+ ↓
1245
+ Action
1246
+ ```
1247
+
1248
+ if the user could perform the task directly.
1249
+
1250
+ ---
1251
+
1252
+ # 60. NAVIGATION STATE
1253
+
1254
+ Preserve meaningful state.
1255
+
1256
+ Examples:
1257
+
1258
+ ```text
1259
+ selected tab
1260
+ scroll position
1261
+ search query
1262
+ filter
1263
+ sort order
1264
+ expanded sections
1265
+ ```
1266
+
1267
+ when users reasonably expect persistence.
1268
+
1269
+ ---
1270
+
1271
+ # 61. INTERRUPTIONS
1272
+
1273
+ Users may leave during:
1274
+
1275
+ ```text
1276
+ upload
1277
+ download
1278
+ playback
1279
+ editing
1280
+ navigation
1281
+ ```
1282
+
1283
+ The application should decide what happens.
1284
+
1285
+ Possible states:
1286
+
1287
+ ```text
1288
+ continue
1289
+ pause
1290
+ cancel
1291
+ save
1292
+ restore
1293
+ ```
1294
+
1295
+ Do not let interruption accidentally destroy work.
1296
+
1297
+ ---
1298
+
1299
+ # 62. BACKGROUND OPERATIONS
1300
+
1301
+ Long-running tasks may need to continue when the user navigates elsewhere.
1302
+
1303
+ Examples:
1304
+
1305
+ ```text
1306
+ download
1307
+ sync
1308
+ audio playback
1309
+ export
1310
+ upload
1311
+ ```
1312
+
1313
+ The UI should communicate task state without forcing the user to remain on
1314
+ the originating screen.
1315
+
1316
+ ---
1317
+
1318
+ # 63. CANCELLATION
1319
+
1320
+ Long operations should support cancellation when practical.
1321
+
1322
+ Example:
1323
+
1324
+ ```text
1325
+ Exporting
1326
+ 42%
1327
+
1328
+ [Cancel]
1329
+ ```
1330
+
1331
+ Cancellation should actually stop or invalidate the underlying operation.
1332
+
1333
+ Do not merely hide the progress UI.
1334
+
1335
+ ---
1336
+
1337
+ # 64. RETRY
1338
+
1339
+ When a transient operation fails:
1340
+
1341
+ ```text
1342
+ Failed
1343
+ ↓
1344
+ Retry
1345
+ ```
1346
+
1347
+ should be straightforward.
1348
+
1349
+ Avoid forcing the user to restart an entire workflow when only one operation
1350
+ failed.
1351
+
1352
+ ---
1353
+
1354
+ # 65. ERROR RECOVERY
1355
+
1356
+ Good interaction design does not merely announce failure.
1357
+
1358
+ It provides a path forward.
1359
+
1360
+ Bad:
1361
+
1362
+ ```text
1363
+ Something went wrong.
1364
+ ```
1365
+
1366
+ Better:
1367
+
1368
+ ```text
1369
+ Download failed.
1370
+
1371
+ Check your connection and try again.
1372
+
1373
+ [Retry]
1374
+ ```
1375
+
1376
+ ---
1377
+
1378
+ # 66. OFFLINE BEHAVIOR
1379
+
1380
+ Apps that can operate offline should clearly distinguish:
1381
+
1382
+ ```text
1383
+ local state
1384
+ server state
1385
+ synchronizing
1386
+ offline
1387
+ error
1388
+ ```
1389
+
1390
+ Do not make users guess whether an action has been saved locally.
1391
+
1392
+ ---
1393
+
1394
+ # 67. ASYNC INTERACTION
1395
+
1396
+ For asynchronous actions:
1397
+
1398
+ ```text
1399
+ User action
1400
+ ↓
1401
+ Immediate acknowledgement
1402
+ ↓
1403
+ Operation
1404
+ ↓
1405
+ Progress/state
1406
+ ↓
1407
+ Success/error
1408
+ ```
1409
+
1410
+ The UI should remain coherent throughout the process.
1411
+
1412
+ ---
1413
+
1414
+ # 68. RACE CONDITIONS
1415
+
1416
+ The agent should consider multiple rapid interactions.
1417
+
1418
+ Example:
1419
+
1420
+ ```text
1421
+ User taps Play
1422
+ User taps Pause
1423
+ User taps Play
1424
+ ```
1425
+
1426
+ The resulting state should be deterministic.
1427
+
1428
+ Avoid asynchronous requests resolving in an order that produces stale UI.
1429
+
1430
+ ---
1431
+
1432
+ # 69. DOUBLE SUBMISSION
1433
+
1434
+ Prevent accidental repeated actions where necessary.
1435
+
1436
+ Example:
1437
+
1438
+ ```text
1439
+ Create Account
1440
+ ↓
1441
+ tap
1442
+ ↓
1443
+ loading
1444
+ ↓
1445
+ disable duplicate submission
1446
+ ```
1447
+
1448
+ But do not disable controls unnecessarily.
1449
+
1450
+ ---
1451
+
1452
+ # 70. DEBOUNCE
1453
+
1454
+ For rapidly changing inputs:
1455
+
1456
+ ```text
1457
+ search
1458
+ slider
1459
+ filter
1460
+ ```
1461
+
1462
+ consider whether actions should be:
1463
+
1464
+ ```text
1465
+ immediate
1466
+ debounced
1467
+ throttled
1468
+ ```
1469
+
1470
+ Choose based on user expectations and system cost.
1471
+
1472
+ ---
1473
+
1474
+ # 71. SEARCH DEBOUNCE
1475
+
1476
+ Example:
1477
+
1478
+ ```text
1479
+ User types:
1480
+ a
1481
+ ap
1482
+ app
1483
+ appl
1484
+ apple
1485
+ ```
1486
+
1487
+ The system does not necessarily need to perform a full network request for
1488
+ every character.
1489
+
1490
+ A debounce strategy can reduce unnecessary work.
1491
+
1492
+ ---
1493
+
1494
+ # 72. SLIDER INTERACTION
1495
+
1496
+ During slider movement:
1497
+
1498
+ ```text
1499
+ drag
1500
+ ↓
1501
+ continuous feedback
1502
+ ↓
1503
+ value updates
1504
+ ```
1505
+
1506
+ Do not make the control feel delayed unless the underlying operation is
1507
+ expensive.
1508
+
1509
+ For expensive operations, separate visual position from expensive processing
1510
+ when necessary.
1511
+
1512
+ ---
1513
+
1514
+ # 73. MEDIA SEEKING
1515
+
1516
+ Media seeking should feel immediate.
1517
+
1518
+ A typical interaction:
1519
+
1520
+ ```text
1521
+ drag timeline
1522
+ ↓
1523
+ thumb follows finger
1524
+ ↓
1525
+ time updates
1526
+ ↓
1527
+ playback seeks
1528
+ ```
1529
+
1530
+ For expensive media operations, use appropriate buffering and synchronization
1531
+ strategies.
1532
+
1533
+ ---
1534
+
1535
+ # 74. QUEUE INTERACTION
1536
+
1537
+ For a music player:
1538
+
1539
+ ```text
1540
+ queue item
1541
+ ↓
1542
+ tap
1543
+ ↓
1544
+ play item
1545
+
1546
+ drag
1547
+ ↓
1548
+ reorder
1549
+
1550
+ swipe
1551
+ ↓
1552
+ remove
1553
+ ```
1554
+
1555
+ Each interaction should have a distinct purpose.
1556
+
1557
+ Avoid multiple conflicting gestures on the same row.
1558
+
1559
+ ---
1560
+
1561
+ # 75. INTERACTION PRIORITY
1562
+
1563
+ When several actions are available:
1564
+
1565
+ ```text
1566
+ primary
1567
+ ↓
1568
+ frequent
1569
+ ↓
1570
+ secondary
1571
+ ↓
1572
+ rare/destructive
1573
+ ```
1574
+
1575
+ The interface should make this hierarchy apparent.
1576
+
1577
+ ---
1578
+
1579
+ # 76. PROGRESSIVE DISCLOSURE
1580
+
1581
+ Do not expose every control simultaneously.
1582
+
1583
+ Start with:
1584
+
1585
+ ```text
1586
+ primary controls
1587
+ ```
1588
+
1589
+ Reveal:
1590
+
1591
+ ```text
1592
+ secondary controls
1593
+ ```
1594
+
1595
+ through:
1596
+
1597
+ ```text
1598
+ menu
1599
+ sheet
1600
+ expand
1601
+ detail view
1602
+ ```
1603
+
1604
+ when appropriate.
1605
+
1606
+ ---
1607
+
1608
+ # 77. DISCOVERABILITY VS SIMPLICITY
1609
+
1610
+ There is a tradeoff:
1611
+
1612
+ ```text
1613
+ Everything visible
1614
+ ↓
1615
+ high discoverability
1616
+ but
1617
+ high cognitive load
1618
+ ```
1619
+
1620
+ versus:
1621
+
1622
+ ```text
1623
+ Everything hidden
1624
+ ↓
1625
+ clean interface
1626
+ but
1627
+ poor discoverability
1628
+ ```
1629
+
1630
+ The goal is:
1631
+
1632
+ ```text
1633
+ important
1634
+ → visible
1635
+
1636
+ secondary
1637
+ → discoverable
1638
+
1639
+ rare
1640
+ → contextual
1641
+ ```
1642
+
1643
+ ---
1644
+
1645
+ # 78. GESTURE VS VISIBLE CONTROL
1646
+
1647
+ Prefer visible controls when the action is:
1648
+
1649
+ ```text
1650
+ important
1651
+ frequent
1652
+ unfamiliar
1653
+ accessibility-critical
1654
+ ```
1655
+
1656
+ Gestures are excellent for:
1657
+
1658
+ ```text
1659
+ fast secondary actions
1660
+ direct manipulation
1661
+ spatial interaction
1662
+ ```
1663
+
1664
+ ---
1665
+
1666
+ # 79. INTERACTION DENSITY
1667
+
1668
+ Too many controls create friction.
1669
+
1670
+ Example:
1671
+
1672
+ ```text
1673
+ [Play] [Pause] [Skip] [Back] [Shuffle] [Repeat] [Queue] [Lyrics] [Share]
1674
+ ```
1675
+
1676
+ may overwhelm a small screen.
1677
+
1678
+ Prioritize.
1679
+
1680
+ ---
1681
+
1682
+ # 80. ONE-HAND USE
1683
+
1684
+ For frequently used mobile actions, consider reachability.
1685
+
1686
+ Important actions should not unnecessarily require awkward hand movement.
1687
+
1688
+ This does not mean every control belongs at the bottom.
1689
+
1690
+ It means interaction placement should reflect frequency and ergonomics.
1691
+
1692
+ ---
1693
+
1694
+ # 81. THUMB ZONES
1695
+
1696
+ Think about:
1697
+
1698
+ ```text
1699
+ easy reach
1700
+ moderate reach
1701
+ difficult reach
1702
+ ```
1703
+
1704
+ Place high-frequency interactions accordingly.
1705
+
1706
+ Large phones especially benefit from deliberate control placement.
1707
+
1708
+ ---
1709
+
1710
+ # 82. EDGE REACHABILITY
1711
+
1712
+ Avoid forcing frequent controls into extreme corners when there is no
1713
+ functional reason.
1714
+
1715
+ Use spatial placement intentionally.
1716
+
1717
+ ---
1718
+
1719
+ # 83. ACCESSIBILITY INTERACTION
1720
+
1721
+ Do not make interaction depend exclusively on:
1722
+
1723
+ ```text
1724
+ precise dragging
1725
+ small targets
1726
+ color
1727
+ haptics
1728
+ fast gestures
1729
+ ```
1730
+
1731
+ Provide accessible alternatives where necessary.
1732
+
1733
+ ---
1734
+
1735
+ # 84. VOICE AND ASSISTIVE INTERACTION
1736
+
1737
+ Important actions should remain semantically exposed to assistive technologies.
1738
+
1739
+ Visual-only meaning is insufficient.
1740
+
1741
+ Examples:
1742
+
1743
+ ```text
1744
+ icon
1745
+ ↓
1746
+ accessible label
1747
+
1748
+ selected state
1749
+ ↓
1750
+ accessible state
1751
+
1752
+ progress
1753
+ ↓
1754
+ accessible value
1755
+ ```
1756
+
1757
+ ---
1758
+
1759
+ # 85. KEYBOARD INTERACTION
1760
+
1761
+ For iPad and keyboard-connected environments, consider:
1762
+
1763
+ ```text
1764
+ focus
1765
+ tab order
1766
+ keyboard shortcuts
1767
+ escape
1768
+ return
1769
+ arrow keys
1770
+ ```
1771
+
1772
+ when relevant.
1773
+
1774
+ Mobile-first does not mean keyboard-ignorant.
1775
+
1776
+ ---
1777
+
1778
+ # 86. POINTER INTERACTION
1779
+
1780
+ iPad may involve pointer input.
1781
+
1782
+ Hover or pointer behavior should enhance the interface without making touch
1783
+ interaction feel secondary.
1784
+
1785
+ ---
1786
+
1787
+ # 87. INTERACTION CONSISTENCY
1788
+
1789
+ If a gesture means:
1790
+
1791
+ ```text
1792
+ swipe to delete
1793
+ ```
1794
+
1795
+ across one part of the application, consider whether users will expect the
1796
+ same behavior elsewhere.
1797
+
1798
+ Consistency reduces learning cost.
1799
+
1800
+ ---
1801
+
1802
+ # 88. ERROR PREVENTION
1803
+
1804
+ The best error message is often the error that never happens.
1805
+
1806
+ Prevent errors through:
1807
+
1808
+ ```text
1809
+ validation
1810
+ constraints
1811
+ safe defaults
1812
+ clear affordances
1813
+ confirmation where necessary
1814
+ undo
1815
+ ```
1816
+
1817
+ ---
1818
+
1819
+ # 89. SAFE DEFAULTS
1820
+
1821
+ Default states should be:
1822
+
1823
+ ```text
1824
+ understandable
1825
+ reversible
1826
+ low-risk
1827
+ useful
1828
+ ```
1829
+
1830
+ Do not default to destructive or surprising behavior.
1831
+
1832
+ ---
1833
+
1834
+ # 90. RECOVERY
1835
+
1836
+ When something goes wrong:
1837
+
1838
+ ```text
1839
+ preserve user work
1840
+ explain problem
1841
+ offer recovery
1842
+ avoid unnecessary restart
1843
+ ```
1844
+
1845
+ Recovery is part of interaction design.
1846
+
1847
+ ---
1848
+
1849
+ # 91. INTERRUPTION TEST
1850
+
1851
+ Test:
1852
+
1853
+ ```text
1854
+ user starts action
1855
+ ↓
1856
+ receives phone call
1857
+ ↓
1858
+ returns
1859
+ ```
1860
+
1861
+ Also:
1862
+
1863
+ ```text
1864
+ user leaves screen
1865
+ user backgrounds app
1866
+ user rotates device
1867
+ user changes orientation
1868
+ user loses network
1869
+ ```
1870
+
1871
+ The application should preserve coherent state where appropriate.
1872
+
1873
+ ---
1874
+
1875
+ # 92. ROTATION / SIZE CHANGES
1876
+
1877
+ On devices supporting multiple orientations or window sizes, interaction
1878
+ should survive layout changes.
1879
+
1880
+ Do not reset state merely because dimensions changed.
1881
+
1882
+ ---
1883
+
1884
+ # 93. RESPONSIVE INTERACTION
1885
+
1886
+ Interaction should adapt with layout.
1887
+
1888
+ Example:
1889
+
1890
+ ```text
1891
+ compact
1892
+ → bottom sheet
1893
+
1894
+ wide
1895
+ → popover/sidebar
1896
+ ```
1897
+
1898
+ The user intent remains the same.
1899
+
1900
+ The presentation changes.
1901
+
1902
+ ---
1903
+
1904
+ # 94. COMPONENT INTERACTION CONTRACT
1905
+
1906
+ Every interactive component should define:
1907
+
1908
+ ```text
1909
+ Trigger
1910
+ ↓
1911
+ Immediate feedback
1912
+ ↓
1913
+ State transition
1914
+ ↓
1915
+ Result
1916
+ ↓
1917
+ Failure path
1918
+ ↓
1919
+ Recovery
1920
+ ```
1921
+
1922
+ ---
1923
+
1924
+ # 95. INTERACTION AUDIT
1925
+
1926
+ For every screen ask:
1927
+
1928
+ ```text
1929
+ What can the user do?
1930
+
1931
+ How does each action begin?
1932
+
1933
+ What feedback occurs?
1934
+
1935
+ What state changes?
1936
+
1937
+ What happens if it fails?
1938
+
1939
+ Can the user undo it?
1940
+
1941
+ Can the user cancel it?
1942
+
1943
+ Can the user recover?
1944
+
1945
+ Does the interaction conflict with another gesture?
1946
+
1947
+ Does accessibility provide another path?
1948
+ ```
1949
+
1950
+ ---
1951
+
1952
+ # 96. INTERACTION QUALITY TEST
1953
+
1954
+ Perform the following test:
1955
+
1956
+ ```text
1957
+ Use the screen without instructions.
1958
+ ```
1959
+
1960
+ Observe:
1961
+
1962
+ ```text
1963
+ Can I tell what is interactive?
1964
+
1965
+ Can I predict what happens?
1966
+
1967
+ Do actions respond immediately?
1968
+
1969
+ Can I recover from mistakes?
1970
+
1971
+ Can I navigate back?
1972
+
1973
+ Can I understand current state?
1974
+
1975
+ Can I complete the task efficiently?
1976
+ ```
1977
+
1978
+ If not, redesign the interaction model before polishing visuals.
1979
+
1980
+ ---
1981
+
1982
+ # 97. PREMIUM INTERACTION TEST
1983
+
1984
+ Premium interaction feels:
1985
+
1986
+ ```text
1987
+ immediate
1988
+ predictable
1989
+ quiet
1990
+ physical
1991
+ responsive
1992
+ forgiving
1993
+ consistent
1994
+ ```
1995
+
1996
+ It should not feel:
1997
+
1998
+ ```text
1999
+ slow
2000
+ overanimated
2001
+ mysterious
2002
+ gesture-dependent
2003
+ fragile
2004
+ ```
2005
+
2006
+ ---
2007
+
2008
+ # 98. AGENT EXECUTION MODEL
2009
+
2010
+ When designing an interaction:
2011
+
2012
+ ```text
2013
+ USER GOAL
2014
+ ↓
2015
+ ACTION
2016
+ ↓
2017
+ AFFORDANCE
2018
+ ↓
2019
+ TOUCH/GESTURE
2020
+ ↓
2021
+ FEEDBACK
2022
+ ↓
2023
+ STATE CHANGE
2024
+ ↓
2025
+ SYSTEM RESPONSE
2026
+ ↓
2027
+ RECOVERY
2028
+ ↓
2029
+ ACCESSIBILITY
2030
+ ↓
2031
+ VALIDATION
2032
+ ```
2033
+
2034
+ ---
2035
+
2036
+ # 99. INTERACTION DECISION TREE
2037
+
2038
+ ```text
2039
+ What does the user want to accomplish?
2040
+ ↓
2041
+ What is the simplest interaction?
2042
+ ↓
2043
+ Is it a standard platform interaction?
2044
+ YES / \ NO
2045
+ ↓ ↓
2046
+ Use it Can it be simplified?
2047
+ ↓
2048
+ YES → simplify
2049
+ ↓
2050
+ NO → custom interaction
2051
+ ↓
2052
+ test discoverability
2053
+ ↓
2054
+ test accessibility
2055
+ ↓
2056
+ test conflicts
2057
+ ```
2058
+
2059
+ ---
2060
+
2061
+ # 100. FINAL PRINCIPLE
2062
+
2063
+ Great interaction design is not about adding more gestures,
2064
+ animations, haptics, or effects.
2065
+
2066
+ It is about reducing the distance between:
2067
+
2068
+ ```text
2069
+ INTENTION
2070
+ ↓
2071
+ ACTION
2072
+ ↓
2073
+ UNDERSTANDING
2074
+ ```
2075
+
2076
+ The best interface often feels almost invisible.
2077
+
2078
+ The user thinks:
2079
+
2080
+ ```text
2081
+ "I knew exactly what would happen."
2082
+ ```
2083
+
2084
+ ---
2085
+
2086
+ # 101. QUICK REFERENCE
2087
+
2088
+ ```text
2089
+ INTENT
2090
+ ↓
2091
+ AFFORDANCE
2092
+ ↓
2093
+ ACTION
2094
+ ↓
2095
+ FEEDBACK
2096
+ ↓
2097
+ STATE
2098
+ ↓
2099
+ RESULT
2100
+ ↓
2101
+ RECOVERY
2102
+ ```
2103
+
2104
+ ---
2105
+
2106
+ # 102. SOURCE
2107
+
2108
+ Apple Human Interface Guidelines:
2109
+
2110
+ [https://developer.apple.com/design/human-interface-guidelines/](https://developer.apple.com/design/human-interface-guidelines/)
2111
+
2112
+ Apple Developer — Accessibility:
2113
+
2114
+ [https://developer.apple.com/accessibility/](https://developer.apple.com/accessibility/)
2115
+
2116
+ Apple Developer — SwiftUI:
2117
+
2118
+ [https://developer.apple.com/documentation/swiftui/](https://developer.apple.com/documentation/swiftui/)
2119
+
2120
+ Apple Developer — UIKit:
2121
+
2122
+ [https://developer.apple.com/documentation/uikit/](https://developer.apple.com/documentation/uikit/)
2123
+
2124
+ ````
2125
+
2126
+ ## Current Apple intelligence stack
2127
+
2128
+ ```text
2129
+ knowledge/apple/
2130
+ │
2131
+ ├── hig-foundations.md
2132
+ ├── designing-for-ios.md
2133
+ ├── layout.md
2134
+ ├── typography.md
2135
+ ├── components.md
2136
+ └── interaction.md ← NEW
2137
+ ````
2138
+
2139
+ We're now at the point where the agent understands **structure → typography → components → behavior**.
2140
+
2141
+