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,2513 @@
1
+
2
+
3
+ ````md
4
+ # Apple Interaction Patterns Intelligence
5
+
6
+ > Agent knowledge module for designing touch, gesture, press, scroll, drag,
7
+ > navigation, feedback, focus, keyboard, pointer, haptic, and state-transition
8
+ > interactions for iOS, iPadOS, React Native, and Expo applications.
9
+
10
+ Version: 1.0
11
+ Platform: iOS / iPadOS / React Native / Expo
12
+ Role: Interaction intelligence
13
+ Parent: knowledge/apple/component-architecture.md
14
+ Use with: MobileUI-OS
15
+
16
+
17
+ # 1. PURPOSE
18
+
19
+ A premium interface is not defined only by its appearance.
20
+
21
+ It is defined by how it responds.
22
+
23
+ The agent must reason about:
24
+
25
+ ```text
26
+ intent
27
+ ↓
28
+ interaction
29
+ ↓
30
+ feedback
31
+ ↓
32
+ state change
33
+ ↓
34
+ result
35
+ ````
36
+
37
+ The interface should feel like it understands the user's action.
38
+
39
+ # 2. INTERACTION LOOP
40
+
41
+ Every important interaction should have a predictable loop:
42
+
43
+ ```text
44
+ USER INTENT
45
+ ↓
46
+ ACTION
47
+ ↓
48
+ IMMEDIATE FEEDBACK
49
+ ↓
50
+ STATE CHANGE
51
+ ↓
52
+ RESULT
53
+ ```
54
+
55
+ Example:
56
+
57
+ ```text
58
+ Tap Play
59
+ ↓
60
+ button feedback
61
+ ↓
62
+ playback begins
63
+ ↓
64
+ icon changes to Pause
65
+ ↓
66
+ progress begins
67
+ ```
68
+
69
+ .
70
+
71
+ # 3. INTERACTION SHOULD BE PREDICTABLE
72
+
73
+ A user should be able to develop a mental model.
74
+
75
+ If:
76
+
77
+ ```text
78
+ tap = open
79
+ ```
80
+
81
+ then unrelated screens should not randomly use:
82
+
83
+ ```text
84
+ tap = select
85
+ ```
86
+
87
+ without a reason.
88
+
89
+ # 4. DIRECT MANIPULATION
90
+
91
+ When possible, users should interact directly with the object they want to
92
+ change.
93
+
94
+ Examples:
95
+
96
+ ```text
97
+ drag item
98
+ swipe item
99
+ pinch image
100
+ scrub timeline
101
+ reorder queue
102
+ ```
103
+
104
+ Direct manipulation often feels more natural than nested configuration.
105
+
106
+ # 5. TOUCH-FIRST PRINCIPLE
107
+
108
+ Mobile interaction should assume:
109
+
110
+ ```text
111
+ finger
112
+ limited precision
113
+ occlusion
114
+ variable reach
115
+ movement
116
+ ```
117
+
118
+ The agent should not design as though the user has a mouse pointer.
119
+
120
+ # 6. TOUCH TARGETS
121
+
122
+ Interactive elements should have sufficiently large hit regions.
123
+
124
+ The visual size and interactive size do not need to be identical.
125
+
126
+ # 7. HIT AREA
127
+
128
+ Prefer:
129
+
130
+ ```text
131
+ small visual icon
132
+ +
133
+ large invisible interaction region
134
+ ```
135
+
136
+ over:
137
+
138
+ ```text
139
+ tiny visual icon
140
+ +
141
+ tiny touch target
142
+ ```
143
+
144
+ # 8. TOUCH TARGET CONSISTENCY
145
+
146
+ Related controls should have comparable interaction targets.
147
+
148
+ Do not make:
149
+
150
+ ```text
151
+ Play = large
152
+ Next = tiny
153
+ Settings = tiny
154
+ ```
155
+
156
+ without a strong reason.
157
+
158
+ # 9. PRESS FEEDBACK
159
+
160
+ A press should normally provide immediate feedback.
161
+
162
+ Possible feedback:
163
+
164
+ ```text
165
+ scale
166
+ opacity
167
+ highlight
168
+ material change
169
+ icon response
170
+ haptic
171
+ ```
172
+
173
+ Use subtle feedback.
174
+
175
+ # 10. PRESS FEEDBACK SHOULD BE FAST
176
+
177
+ Feedback should begin immediately after touch recognition.
178
+
179
+ Avoid interactions where the interface appears frozen before responding.
180
+
181
+ # 11. PRESSED STATE
182
+
183
+ A component may transition:
184
+
185
+ ```text
186
+ idle
187
+ ↓
188
+ pressed
189
+ ↓
190
+ released
191
+ ↓
192
+ result
193
+ ```
194
+
195
+ The pressed state should communicate that the touch was recognized.
196
+
197
+ # 12. PRESS CANCELLATION
198
+
199
+ If the user presses and moves away before release:
200
+
201
+ ```text
202
+ gesture may cancel
203
+ ```
204
+
205
+ The interface should not accidentally trigger the action.
206
+
207
+ # 13. TOUCH SLIPPAGE
208
+
209
+ For important destructive actions, avoid overly sensitive gesture activation.
210
+
211
+ # 14. TAP
212
+
213
+ Use tap for:
214
+
215
+ ```text
216
+ selection
217
+ opening
218
+ activation
219
+ confirmation
220
+ ```
221
+
222
+ Tap should generally have one clear primary meaning per control.
223
+
224
+ # 15. DOUBLE TAP
225
+
226
+ Double tap should be used only when the interaction has a clear platform or
227
+ product convention.
228
+
229
+ Do not use double tap simply to hide actions.
230
+
231
+ # 16. LONG PRESS
232
+
233
+ Long press is useful for:
234
+
235
+ ```text
236
+ contextual actions
237
+ secondary controls
238
+ selection
239
+ reordering initiation
240
+ preview
241
+ ```
242
+
243
+ It should not be the only route to critical functionality.
244
+
245
+ # 17. LONG-PRESS FEEDBACK
246
+
247
+ The system should communicate that the long press has been recognized.
248
+
249
+ Possible feedback:
250
+
251
+ ```text
252
+ haptic
253
+ visual highlight
254
+ context menu
255
+ preview
256
+ ```
257
+
258
+ .
259
+
260
+ # 18. GESTURE DISCOVERABILITY
261
+
262
+ Important gestures should have another discoverable route where possible.
263
+
264
+ Example:
265
+
266
+ ```text
267
+ swipe to delete
268
+ ```
269
+
270
+ should be complemented by:
271
+
272
+ ```text
273
+ context menu → Delete
274
+ ```
275
+
276
+ or another obvious action.
277
+
278
+ # 19. GESTURE PRIORITY
279
+
280
+ Use gestures for actions that benefit from direct manipulation.
281
+
282
+ Do not add gestures simply because they are technically possible.
283
+
284
+ # 20. SWIPE
285
+
286
+ Swipe can represent:
287
+
288
+ ```text
289
+ reveal
290
+ dismiss
291
+ delete
292
+ archive
293
+ navigate
294
+ ```
295
+
296
+ depending on context.
297
+
298
+ # 21. SWIPE ACTIONS
299
+
300
+ Swipe actions should:
301
+
302
+ ```text
303
+ be predictable
304
+ have clear labels/icons
305
+ provide feedback
306
+ avoid accidental destructive activation
307
+ ```
308
+
309
+ .
310
+
311
+ # 22. SWIPE DISTANCE
312
+
313
+ Do not require exaggerated movement.
314
+
315
+ Do not trigger important destructive actions from tiny accidental movement.
316
+
317
+ # 23. SWIPE THRESHOLDS
318
+
319
+ Thresholds should balance:
320
+
321
+ ```text
322
+ discoverability
323
+ speed
324
+ accuracy
325
+ accidental activation
326
+ ```
327
+
328
+ .
329
+
330
+ # 24. SWIPE DESTRUCTIVE ACTIONS
331
+
332
+ Destructive swipe actions should require appropriate confirmation or a safe
333
+ recovery mechanism when the operation cannot be undone.
334
+
335
+ # 25. UNDO
336
+
337
+ For reversible operations, undo can be superior to confirmation dialogs.
338
+
339
+ Example:
340
+
341
+ ```text
342
+ Delete item
343
+ ↓
344
+ item disappears
345
+ ↓
346
+ Undo
347
+ ```
348
+
349
+ This preserves flow.
350
+
351
+ # 26. CONFIRMATION VS UNDO
352
+
353
+ Prefer:
354
+
355
+ ```text
356
+ undo
357
+ ```
358
+
359
+ when:
360
+
361
+ ```text
362
+ operation is reversible
363
+ user can easily recover
364
+ ```
365
+
366
+ Prefer:
367
+
368
+ ```text
369
+ confirmation
370
+ ```
371
+
372
+ when:
373
+
374
+ ```text
375
+ operation is highly consequential
376
+ irreversible
377
+ or recovery is difficult
378
+ ```
379
+
380
+ .
381
+
382
+ # 27. DRAG
383
+
384
+ Drag interaction is appropriate for:
385
+
386
+ ```text
387
+ reordering
388
+ moving
389
+ positioning
390
+ direct manipulation
391
+ ```
392
+
393
+ .
394
+
395
+ # 28. DRAG INITIATION
396
+
397
+ A drag should have a clear initiation mechanism.
398
+
399
+ Possible:
400
+
401
+ ```text
402
+ long press
403
+ drag handle
404
+ direct manipulation
405
+ ```
406
+
407
+ depending on the object.
408
+
409
+ # 29. DRAG FEEDBACK
410
+
411
+ During drag:
412
+
413
+ ```text
414
+ source state changes
415
+ target responds
416
+ position updates
417
+ ```
418
+
419
+ The user should understand where the object will land.
420
+
421
+ # 30. DRAG LIFT EFFECT
422
+
423
+ A dragged object may visually separate from its original position through:
424
+
425
+ ```text
426
+ scale
427
+ shadow
428
+ opacity
429
+ elevation
430
+ ```
431
+
432
+ Use restrained effects.
433
+
434
+ # 31. DROP FEEDBACK
435
+
436
+ The target should communicate:
437
+
438
+ ```text
439
+ valid destination
440
+ invalid destination
441
+ current position
442
+ ```
443
+
444
+ .
445
+
446
+ # 32. REORDERING
447
+
448
+ Reordering should preserve:
449
+
450
+ ```text
451
+ item identity
452
+ position
453
+ continuity
454
+ ```
455
+
456
+ Avoid visually teleporting items unnecessarily.
457
+
458
+ # 33. DRAG CANCEL
459
+
460
+ The user should be able to cancel a drag naturally.
461
+
462
+ The original object should return to a stable state.
463
+
464
+ # 34. PINCH
465
+
466
+ Pinch is appropriate for:
467
+
468
+ ```text
469
+ zoom
470
+ scale
471
+ map navigation
472
+ image inspection
473
+ ```
474
+
475
+ .
476
+
477
+ # 35. PINCH BOUNDS
478
+
479
+ Define sensible minimum and maximum values.
480
+
481
+ Avoid unlimited zoom unless the application genuinely requires it.
482
+
483
+ # 36. PAN
484
+
485
+ Pan is appropriate for:
486
+
487
+ ```text
488
+ large images
489
+ maps
490
+ canvas
491
+ zoomed content
492
+ ```
493
+
494
+ .
495
+
496
+ # 37. PAN + SCROLL
497
+
498
+ Avoid competing gestures.
499
+
500
+ The system should clearly determine whether the user is:
501
+
502
+ ```text
503
+ scrolling
504
+ panning
505
+ dragging
506
+ ```
507
+
508
+ .
509
+
510
+ # 38. GESTURE CONFLICTS
511
+
512
+ Common conflicts:
513
+
514
+ ```text
515
+ horizontal swipe
516
+ vs
517
+ vertical scroll
518
+ ```
519
+
520
+ and:
521
+
522
+ ```text
523
+ parent pan
524
+ vs
525
+ child drag
526
+ ```
527
+
528
+ The agent should explicitly define gesture priority.
529
+
530
+ # 39. GESTURE PRIORITY MODEL
531
+
532
+ Conceptually:
533
+
534
+ ```text
535
+ specific gesture
536
+ ↓
537
+ local component gesture
538
+ ↓
539
+ parent gesture
540
+ ↓
541
+ global gesture
542
+ ```
543
+
544
+ unless platform behavior dictates otherwise.
545
+
546
+ # 40. SCROLLING
547
+
548
+ Scrolling is itself an interaction.
549
+
550
+ The agent should consider:
551
+
552
+ ```text
553
+ velocity
554
+ momentum
555
+ overscroll
556
+ direction
557
+ content bounds
558
+ scroll position
559
+ header behavior
560
+ ```
561
+
562
+ .
563
+
564
+ # 41. SCROLLING SHOULD FEEL PHYSICAL
565
+
566
+ Avoid abrupt:
567
+
568
+ ```text
569
+ start
570
+ stop
571
+ ```
572
+
573
+ behavior unless the interaction explicitly requires it.
574
+
575
+ # 42. SCROLL CONTINUITY
576
+
577
+ Content should not unexpectedly jump while scrolling.
578
+
579
+ When dynamic content changes, preserve the user's context where possible.
580
+
581
+ # 43. SCROLL POSITION
582
+
583
+ When navigating away and returning, preserve scroll position when it improves
584
+ continuity.
585
+
586
+ # 44. SCROLL-TO-TOP
587
+
588
+ Repeated interaction with a top navigation element may support returning to the
589
+ top when appropriate.
590
+
591
+ The behavior should be consistent with platform conventions.
592
+
593
+ # 45. PULL TO REFRESH
594
+
595
+ Use pull-to-refresh when:
596
+
597
+ ```text
598
+ content is refreshable
599
+ ```
600
+
601
+ and:
602
+
603
+ ```text
604
+ manual refresh is meaningful
605
+ ```
606
+
607
+ Do not add it to every list automatically.
608
+
609
+ # 46. REFRESH FEEDBACK
610
+
611
+ A refresh interaction should communicate:
612
+
613
+ ```text
614
+ gesture recognized
615
+ refresh started
616
+ refresh complete
617
+ ```
618
+
619
+ .
620
+
621
+ # 47. LOADING STATES
622
+
623
+ Loading should be proportional to the task.
624
+
625
+ For small actions:
626
+
627
+ ```text
628
+ button loading
629
+ ```
630
+
631
+ may be enough.
632
+
633
+ For large page loads:
634
+
635
+ ```text
636
+ skeleton
637
+ progress
638
+ loading state
639
+ ```
640
+
641
+ may be appropriate.
642
+
643
+ # 48. AVOID GLOBAL SPINNERS
644
+
645
+ Do not block the entire interface with a spinner when only one component is
646
+ loading.
647
+
648
+ # 49. LOCALIZED FEEDBACK
649
+
650
+ Prefer:
651
+
652
+ ```text
653
+ button loading
654
+ row loading
655
+ section loading
656
+ ```
657
+
658
+ over:
659
+
660
+ ```text
661
+ entire application loading
662
+ ```
663
+
664
+ when possible.
665
+
666
+ # 50. OPTIMISTIC UI
667
+
668
+ For low-risk actions, consider updating the UI immediately.
669
+
670
+ Example:
671
+
672
+ ```text
673
+ favorite
674
+ ↓
675
+ heart activates immediately
676
+ ↓
677
+ request synchronizes
678
+ ```
679
+
680
+ .
681
+
682
+ # 51. OPTIMISTIC UI SAFETY
683
+
684
+ Optimistic updates require a recovery strategy.
685
+
686
+ If the operation fails:
687
+
688
+ ```text
689
+ restore state
690
+ inform user
691
+ provide retry
692
+ ```
693
+
694
+ as appropriate.
695
+
696
+ # 52. LATENCY MASKING
697
+
698
+ When operations take time, preserve interaction continuity.
699
+
700
+ Use:
701
+
702
+ ```text
703
+ placeholder
704
+ optimistic state
705
+ progress
706
+ skeleton
707
+ ```
708
+
709
+ instead of unexplained freezes.
710
+
711
+ # 53. FEEDBACK TIMING
712
+
713
+ Feedback should match task duration.
714
+
715
+ Conceptually:
716
+
717
+ ```text
718
+ instant action
719
+ → immediate feedback
720
+
721
+ short operation
722
+ → local loading
723
+
724
+ long operation
725
+ → progress/status
726
+ ```
727
+
728
+ .
729
+
730
+ # 54. HAPTICS
731
+
732
+ Haptics should reinforce meaning.
733
+
734
+ Good uses:
735
+
736
+ ```text
737
+ selection
738
+ success
739
+ warning
740
+ completion
741
+ drag threshold
742
+ toggle
743
+ ```
744
+
745
+ where platform APIs support them.
746
+
747
+ # 55. HAPTIC RESTRAINT
748
+
749
+ Do not vibrate on every interaction.
750
+
751
+ Too much haptic feedback becomes noise.
752
+
753
+ # 56. HAPTIC SEMANTICS
754
+
755
+ Prefer semantic feedback types:
756
+
757
+ ```text
758
+ selection
759
+ success
760
+ warning
761
+ error
762
+ impact
763
+ ```
764
+
765
+ rather than arbitrary vibration patterns everywhere.
766
+
767
+ # 57. HAPTIC + VISUAL
768
+
769
+ Haptics should supplement visual feedback.
770
+
771
+ Never make haptics the only indication of important state.
772
+
773
+ # 58. AUDIO FEEDBACK
774
+
775
+ Audio feedback may be useful for:
776
+
777
+ ```text
778
+ media
779
+ games
780
+ creative tools
781
+ specialized interfaces
782
+ ```
783
+
784
+ but should respect user settings and context.
785
+
786
+ # 59. ACCESSIBILITY FEEDBACK
787
+
788
+ Interactions should remain understandable without:
789
+
790
+ ```text
791
+ color
792
+ sound
793
+ haptics
794
+ motion
795
+ ```
796
+
797
+ alone.
798
+
799
+ # 60. FOCUS
800
+
801
+ Focus is important for:
802
+
803
+ ```text
804
+ keyboard
805
+ switch control
806
+ external keyboards
807
+ accessibility
808
+ pointer interaction
809
+ ```
810
+
811
+ .
812
+
813
+ # 61. FOCUS VISIBILITY
814
+
815
+ Focused controls must have a visible or otherwise perceivable state.
816
+
817
+ # 62. KEYBOARD NAVIGATION
818
+
819
+ On iPad and external keyboards, the interface should support logical navigation
820
+ where appropriate.
821
+
822
+ # 63. KEYBOARD DISMISSAL
823
+
824
+ Forms should provide sensible keyboard dismissal behavior.
825
+
826
+ Avoid forcing users through unnecessary steps.
827
+
828
+ # 64. INPUT SUBMISSION
829
+
830
+ Keyboard actions should correspond to semantic intent:
831
+
832
+ ```text
833
+ Search
834
+ Next
835
+ Done
836
+ Send
837
+ Go
838
+ ```
839
+
840
+ where applicable.
841
+
842
+ # 65. FOCUS TRANSITION
843
+
844
+ After submitting a field:
845
+
846
+ ```text
847
+ field A
848
+ ↓
849
+ field B
850
+ ```
851
+
852
+ may be preferable to dismissing the keyboard immediately.
853
+
854
+ # 66. POINTER SUPPORT
855
+
856
+ On iPad or pointer-capable environments, interactive elements should provide
857
+ appropriate hover/focus feedback where supported.
858
+
859
+ # 67. POINTER VS TOUCH
860
+
861
+ Pointer interaction can provide:
862
+
863
+ ```text
864
+ hover
865
+ precise selection
866
+ right-click/context
867
+ ```
868
+
869
+ Touch interaction may not.
870
+
871
+ Do not force pointer-specific behavior onto touch users.
872
+
873
+ # 68. CONTEXT MENUS
874
+
875
+ Context menus provide secondary actions without permanently occupying screen
876
+ space.
877
+
878
+ They are especially useful for:
879
+
880
+ ```text
881
+ lists
882
+ files
883
+ media
884
+ documents
885
+ items
886
+ ```
887
+
888
+ .
889
+
890
+ # 69. CONTEXT MENU PRIORITY
891
+
892
+ The most common actions should appear first.
893
+
894
+ Destructive actions should be visually separated or appropriately positioned.
895
+
896
+ # 70. CONTEXT MENU ACTIONS
897
+
898
+ Menu actions should be:
899
+
900
+ ```text
901
+ semantic
902
+ concise
903
+ predictable
904
+ ```
905
+
906
+ Avoid technical implementation names.
907
+
908
+ # 71. SHEET INTERACTION
909
+
910
+ Sheets should feel connected to the originating context.
911
+
912
+ The transition should communicate:
913
+
914
+ ```text
915
+ origin
916
+ relationship
917
+ temporary state
918
+ ```
919
+
920
+ .
921
+
922
+ # 72. SHEET DISMISSAL
923
+
924
+ Users should have an obvious way to dismiss the sheet.
925
+
926
+ Gesture dismissal may supplement explicit controls.
927
+
928
+ # 73. SHEET CONFIRMATION
929
+
930
+ If unsaved work exists, dismissal may require:
931
+
932
+ ```text
933
+ save
934
+ discard
935
+ cancel
936
+ ```
937
+
938
+ only when necessary.
939
+
940
+ # 74. MODAL INTERRUPTION
941
+
942
+ Modal interactions should be rare.
943
+
944
+ Use them when the user must resolve something before continuing.
945
+
946
+ # 75. MODAL ESCAPE
947
+
948
+ Where appropriate, allow:
949
+
950
+ ```text
951
+ cancel
952
+ dismiss
953
+ back
954
+ ```
955
+
956
+ without destroying user work.
957
+
958
+ # 76. NAVIGATION TRANSITIONS
959
+
960
+ Navigation transitions should preserve spatial understanding.
961
+
962
+ The user should understand:
963
+
964
+ ```text
965
+ where they came from
966
+ where they are
967
+ where they are going
968
+ ```
969
+
970
+ .
971
+
972
+ # 77. PUSH TRANSITION
973
+
974
+ A push commonly communicates:
975
+
976
+ ```text
977
+ current screen
978
+ ↓
979
+ deeper content
980
+ ```
981
+
982
+ .
983
+
984
+ # 78. POP TRANSITION
985
+
986
+ Returning should communicate:
987
+
988
+ ```text
989
+ detail
990
+ ↓
991
+ previous context
992
+ ```
993
+
994
+ .
995
+
996
+ # 79. PRESENTATION TRANSITION
997
+
998
+ Modal presentation communicates:
999
+
1000
+ ```text
1001
+ temporary task
1002
+ ```
1003
+
1004
+ rather than permanent navigation hierarchy.
1005
+
1006
+ # 80. TRANSITION CONTINUITY
1007
+
1008
+ When possible, preserve:
1009
+
1010
+ ```text
1011
+ object identity
1012
+ position
1013
+ scale
1014
+ visual relationship
1015
+ ```
1016
+
1017
+ between states.
1018
+
1019
+ # 81. SHARED ELEMENT CONCEPT
1020
+
1021
+ If an object appears in two screens:
1022
+
1023
+ ```text
1024
+ thumbnail
1025
+ ↓
1026
+ full artwork
1027
+ ```
1028
+
1029
+ a transition can preserve its identity.
1030
+
1031
+ Use carefully; do not animate everything.
1032
+
1033
+ # 82. MICRO-INTERACTIONS
1034
+
1035
+ Micro-interactions should communicate:
1036
+
1037
+ ```text
1038
+ cause
1039
+ effect
1040
+ state
1041
+ completion
1042
+ ```
1043
+
1044
+ .
1045
+
1046
+ # 83. MICRO-INTERACTION EXAMPLES
1047
+
1048
+ Useful:
1049
+
1050
+ ```text
1051
+ heart → filled
1052
+ toggle → moved
1053
+ download → completed
1054
+ play → pause
1055
+ queue → item inserted
1056
+ ```
1057
+
1058
+ .
1059
+
1060
+ # 84. MICRO-INTERACTION RESTRAINT
1061
+
1062
+ Avoid:
1063
+
1064
+ ```text
1065
+ constant bouncing
1066
+ random scaling
1067
+ excessive particles
1068
+ unnecessary rotation
1069
+ ```
1070
+
1071
+ .
1072
+
1073
+ # 85. STATE TRANSITIONS
1074
+
1075
+ Components should transition between meaningful states.
1076
+
1077
+ Example:
1078
+
1079
+ ```text
1080
+ Download
1081
+ ↓
1082
+ Downloading
1083
+ ↓
1084
+ Downloaded
1085
+ ```
1086
+
1087
+ The visual changes should communicate the state.
1088
+
1089
+ # 86. ERROR RECOVERY
1090
+
1091
+ An error should ideally lead to:
1092
+
1093
+ ```text
1094
+ error
1095
+ ↓
1096
+ understand
1097
+ ↓
1098
+ recover
1099
+ ↓
1100
+ retry / continue
1101
+ ```
1102
+
1103
+ rather than:
1104
+
1105
+ ```text
1106
+ error
1107
+ ↓
1108
+ dead end
1109
+ ```
1110
+
1111
+ # 87. RETRY
1112
+
1113
+ Retry actions should be located near the failed operation when possible.
1114
+
1115
+ # 88. ERROR PERSISTENCE
1116
+
1117
+ Do not leave stale errors visible after the underlying condition has recovered.
1118
+
1119
+ # 89. SUCCESS FEEDBACK
1120
+
1121
+ Success should be noticeable but proportional.
1122
+
1123
+ Examples:
1124
+
1125
+ ```text
1126
+ checkmark
1127
+ subtle confirmation
1128
+ state transition
1129
+ small banner
1130
+ ```
1131
+
1132
+ .
1133
+
1134
+ # 90. DESTRUCTIVE INTERACTIONS
1135
+
1136
+ Before destructive actions, evaluate:
1137
+
1138
+ ```text
1139
+ reversibility
1140
+ impact
1141
+ frequency
1142
+ accidental activation risk
1143
+ ```
1144
+
1145
+ .
1146
+
1147
+ # 91. DESTRUCTIVE ACTION STRATEGY
1148
+
1149
+ Low-risk reversible:
1150
+
1151
+ ```text
1152
+ execute + undo
1153
+ ```
1154
+
1155
+ High-risk irreversible:
1156
+
1157
+ ```text
1158
+ confirmation
1159
+ ```
1160
+
1161
+ Extremely dangerous:
1162
+
1163
+ ```text
1164
+ explicit confirmation + clear consequence
1165
+ ```
1166
+
1167
+ .
1168
+
1169
+ # 92. ACTION LABELS
1170
+
1171
+ Use specific labels.
1172
+
1173
+ Prefer:
1174
+
1175
+ ```text
1176
+ Delete Playlist
1177
+ ```
1178
+
1179
+ over:
1180
+
1181
+ ```text
1182
+ Yes
1183
+ ```
1184
+
1185
+ when confirming destructive behavior.
1186
+
1187
+ # 93. DISABLED STATES
1188
+
1189
+ Disabled controls should clearly communicate unavailable status.
1190
+
1191
+ Do not simply reduce opacity until the control becomes unreadable.
1192
+
1193
+ # 94. DISABLED VS HIDDEN
1194
+
1195
+ Hide an action when:
1196
+
1197
+ ```text
1198
+ it is irrelevant
1199
+ ```
1200
+
1201
+ Disable it when:
1202
+
1203
+ ```text
1204
+ it is relevant but currently unavailable
1205
+ ```
1206
+
1207
+ The distinction matters.
1208
+
1209
+ # 95. DISABLED EXPLANATION
1210
+
1211
+ If users need to know why something is disabled, provide contextual explanation.
1212
+
1213
+ # 96. SELECTION
1214
+
1215
+ Selection should have clear visual feedback.
1216
+
1217
+ Examples:
1218
+
1219
+ ```text
1220
+ checkmark
1221
+ highlight
1222
+ background change
1223
+ selection indicator
1224
+ ```
1225
+
1226
+ .
1227
+
1228
+ # 97. MULTI-SELECTION
1229
+
1230
+ When multiple items can be selected:
1231
+
1232
+ ```text
1233
+ selection mode
1234
+ ```
1235
+
1236
+ should become obvious.
1237
+
1238
+ # 98. SELECTION ACTION BAR
1239
+
1240
+ Bulk actions may appear when selection begins:
1241
+
1242
+ ```text
1243
+ selected: 4
1244
+ Share
1245
+ Move
1246
+ Delete
1247
+ ```
1248
+
1249
+ This keeps normal list UI clean.
1250
+
1251
+ # 99. MULTI-ACTION MODE
1252
+
1253
+ Entering selection mode should change the interaction model clearly.
1254
+
1255
+ Avoid subtle mode changes that users may not notice.
1256
+
1257
+ # 100. SELECTION EXIT
1258
+
1259
+ Provide a clear way to leave selection mode.
1260
+
1261
+ Possible:
1262
+
1263
+ ```text
1264
+ Cancel
1265
+ Back
1266
+ Done
1267
+ tap outside
1268
+ ```
1269
+
1270
+ depending on context.
1271
+
1272
+ # 101. FEEDBACK HIERARCHY
1273
+
1274
+ Feedback should be classified:
1275
+
1276
+ ```text
1277
+ micro
1278
+ local
1279
+ contextual
1280
+ global
1281
+ modal
1282
+ ```
1283
+
1284
+ Use the smallest level capable of communicating the result.
1285
+
1286
+ # 102. MICRO FEEDBACK
1287
+
1288
+ Examples:
1289
+
1290
+ ```text
1291
+ button highlight
1292
+ toggle animation
1293
+ icon transition
1294
+ ```
1295
+
1296
+ .
1297
+
1298
+ # 103. LOCAL FEEDBACK
1299
+
1300
+ Examples:
1301
+
1302
+ ```text
1303
+ row error
1304
+ field validation
1305
+ component loading
1306
+ ```
1307
+
1308
+ .
1309
+
1310
+ # 104. CONTEXTUAL FEEDBACK
1311
+
1312
+ Examples:
1313
+
1314
+ ```text
1315
+ banner
1316
+ inline status
1317
+ section message
1318
+ ```
1319
+
1320
+ .
1321
+
1322
+ # 105. GLOBAL FEEDBACK
1323
+
1324
+ Use for events affecting the broader application.
1325
+
1326
+ # 106. MODAL FEEDBACK
1327
+
1328
+ Reserve for information requiring immediate attention.
1329
+
1330
+ # 107. FEEDBACK ESCALATION
1331
+
1332
+ Conceptually:
1333
+
1334
+ ```text
1335
+ micro
1336
+ ↓
1337
+ local
1338
+ ↓
1339
+ contextual
1340
+ ↓
1341
+ global
1342
+ ↓
1343
+ modal
1344
+ ```
1345
+
1346
+ Use the lowest effective level.
1347
+
1348
+ # 108. NOTIFICATION DESIGN
1349
+
1350
+ Notifications should not interrupt unnecessarily.
1351
+
1352
+ The agent should distinguish:
1353
+
1354
+ ```text
1355
+ urgent
1356
+ important
1357
+ informational
1358
+ background
1359
+ ```
1360
+
1361
+ .
1362
+
1363
+ # 109. INTERRUPTION BUDGET
1364
+
1365
+ Every interruption has a cost.
1366
+
1367
+ Before creating:
1368
+
1369
+ ```text
1370
+ alert
1371
+ modal
1372
+ notification
1373
+ ```
1374
+
1375
+ ask:
1376
+
1377
+ > Does the user need to deal with this now?
1378
+
1379
+ # 110. USER CONTROL
1380
+
1381
+ Users should generally control:
1382
+
1383
+ ```text
1384
+ notification frequency
1385
+ sound
1386
+ haptics
1387
+ appearance
1388
+ automatic behavior
1389
+ ```
1390
+
1391
+ where appropriate.
1392
+
1393
+ # 111. INTERACTION CONSISTENCY
1394
+
1395
+ Equivalent actions should behave equivalently.
1396
+
1397
+ Example:
1398
+
1399
+ ```text
1400
+ favorite
1401
+ ```
1402
+
1403
+ should not:
1404
+
1405
+ ```text
1406
+ tap on one screen
1407
+ long press on another
1408
+ swipe on another
1409
+ ```
1410
+
1411
+ without a meaningful contextual reason.
1412
+
1413
+ # 112. INTERACTION DISCOVERY
1414
+
1415
+ If an action is important:
1416
+
1417
+ ```text
1418
+ make it visible
1419
+ ```
1420
+
1421
+ before:
1422
+
1423
+ ```text
1424
+ hide it behind a gesture
1425
+ ```
1426
+
1427
+ .
1428
+
1429
+ # 113. GESTURE + VISIBLE ACTION
1430
+
1431
+ A gesture can accelerate an action.
1432
+
1433
+ It should not necessarily be the only way to perform it.
1434
+
1435
+ # 114. USER ERROR PREVENTION
1436
+
1437
+ Good interaction design prevents mistakes.
1438
+
1439
+ Examples:
1440
+
1441
+ ```text
1442
+ disable invalid submission
1443
+ constrain drag targets
1444
+ validate input
1445
+ confirm irreversible operations
1446
+ ```
1447
+
1448
+ .
1449
+
1450
+ # 115. ERROR TOLERANCE
1451
+
1452
+ When mistakes occur, recovery should be easy.
1453
+
1454
+ Examples:
1455
+
1456
+ ```text
1457
+ undo
1458
+ restore
1459
+ retry
1460
+ edit
1461
+ cancel
1462
+ ```
1463
+
1464
+ .
1465
+
1466
+ # 116. INTERACTION COST
1467
+
1468
+ Consider:
1469
+
1470
+ ```text
1471
+ number of taps
1472
+ gesture complexity
1473
+ navigation depth
1474
+ typing
1475
+ cognitive load
1476
+ ```
1477
+
1478
+ before designing an interaction.
1479
+
1480
+ # 117. MINIMUM INTERACTION PRINCIPLE
1481
+
1482
+ Prefer:
1483
+
1484
+ ```text
1485
+ one clear action
1486
+ ```
1487
+
1488
+ over:
1489
+
1490
+ ```text
1491
+ three unnecessary confirmation steps
1492
+ ```
1493
+
1494
+ when risk is low.
1495
+
1496
+ # 118. COGNITIVE LOAD
1497
+
1498
+ Every interaction requires users to remember:
1499
+
1500
+ ```text
1501
+ what happened
1502
+ what mode they are in
1503
+ what gesture is active
1504
+ what action is available
1505
+ ```
1506
+
1507
+ Reduce unnecessary mental overhead.
1508
+
1509
+ # 119. MODELESS DESIGN
1510
+
1511
+ Prefer interfaces where actions remain understandable without hidden modes.
1512
+
1513
+ When modes are necessary, make them obvious.
1514
+
1515
+ # 120. MODE VISIBILITY
1516
+
1517
+ Example:
1518
+
1519
+ ```text
1520
+ normal mode
1521
+ ```
1522
+
1523
+ vs:
1524
+
1525
+ ```text
1526
+ selection mode
1527
+ ```
1528
+
1529
+ should look and behave differently enough to communicate the transition.
1530
+
1531
+ # 121. INTERACTION DENSITY
1532
+
1533
+ Do not maximize the number of available actions.
1534
+
1535
+ Prioritize:
1536
+
1537
+ ```text
1538
+ primary
1539
+ secondary
1540
+ contextual
1541
+ ```
1542
+
1543
+ .
1544
+
1545
+ # 122. PRIMARY ACTION
1546
+
1547
+ The primary action should be the easiest to discover and perform.
1548
+
1549
+ # 123. SECONDARY ACTION
1550
+
1551
+ Secondary actions should remain accessible without competing with the primary
1552
+ task.
1553
+
1554
+ # 124. ADVANCED ACTION
1555
+
1556
+ Advanced actions can live in:
1557
+
1558
+ ```text
1559
+ menus
1560
+ sheets
1561
+ settings
1562
+ context menus
1563
+ ```
1564
+
1565
+ when appropriate.
1566
+
1567
+ # 125. INTERACTION DEPTH
1568
+
1569
+ Avoid forcing users through:
1570
+
1571
+ ```text
1572
+ screen
1573
+ → screen
1574
+ → screen
1575
+ → dialog
1576
+ → confirmation
1577
+ ```
1578
+
1579
+ for simple operations.
1580
+
1581
+ # 126. SHORTCUTS
1582
+
1583
+ Experienced users may benefit from:
1584
+
1585
+ ```text
1586
+ keyboard shortcuts
1587
+ context menus
1588
+ gestures
1589
+ quick actions
1590
+ ```
1591
+
1592
+ while preserving discoverability for new users.
1593
+
1594
+ # 127. PROGRESSIVE DISCLOSURE
1595
+
1596
+ Show complexity progressively.
1597
+
1598
+ Example:
1599
+
1600
+ ```text
1601
+ basic controls
1602
+ ↓
1603
+ more controls
1604
+ ↓
1605
+ advanced settings
1606
+ ```
1607
+
1608
+ .
1609
+
1610
+ # 128. CONTEXTUAL CONTROLS
1611
+
1612
+ Controls should appear when relevant.
1613
+
1614
+ Example:
1615
+
1616
+ ```text
1617
+ selection mode
1618
+ ↓
1619
+ bulk actions appear
1620
+ ```
1621
+
1622
+ .
1623
+
1624
+ # 129. CONTEXT PRESERVATION
1625
+
1626
+ When opening a secondary UI:
1627
+
1628
+ ```text
1629
+ sheet
1630
+ popover
1631
+ menu
1632
+ detail
1633
+ ```
1634
+
1635
+ preserve the user's relationship to the original content.
1636
+
1637
+ # 130. RETURN PATH
1638
+
1639
+ Users should understand how to return to the previous context.
1640
+
1641
+ Navigation should not create dead ends.
1642
+
1643
+ # 131. BACK BEHAVIOR
1644
+
1645
+ Back should behave predictably.
1646
+
1647
+ The agent should consider:
1648
+
1649
+ ```text
1650
+ navigation stack
1651
+ modal
1652
+ sheet
1653
+ keyboard
1654
+ selection mode
1655
+ expanded state
1656
+ ```
1657
+
1658
+ and resolve the highest-priority transient state first where appropriate.
1659
+
1660
+ # 132. TRANSIENT STATE PRIORITY
1661
+
1662
+ Conceptually:
1663
+
1664
+ ```text
1665
+ keyboard
1666
+ ↓
1667
+ popover/menu
1668
+ ↓
1669
+ sheet/modal
1670
+ ↓
1671
+ navigation
1672
+ ```
1673
+
1674
+ Exact behavior depends on the platform and interaction.
1675
+
1676
+ # 133. SCROLL + NAVIGATION
1677
+
1678
+ If navigating away from a list, preserve:
1679
+
1680
+ ```text
1681
+ selected item
1682
+ scroll position
1683
+ filter
1684
+ sort
1685
+ ```
1686
+
1687
+ where doing so supports continuity.
1688
+
1689
+ # 134. FILTER INTERACTIONS
1690
+
1691
+ Filters should communicate:
1692
+
1693
+ ```text
1694
+ active
1695
+ inactive
1696
+ applied
1697
+ pending
1698
+ ```
1699
+
1700
+ when necessary.
1701
+
1702
+ # 135. SORT INTERACTIONS
1703
+
1704
+ Sorting should provide clear feedback about the current order.
1705
+
1706
+ Example:
1707
+
1708
+ ```text
1709
+ Sort: Recently Added
1710
+ ```
1711
+
1712
+ rather than requiring users to infer it.
1713
+
1714
+ # 136. SEARCH INTERACTION
1715
+
1716
+ Search should distinguish:
1717
+
1718
+ ```text
1719
+ empty
1720
+ typing
1721
+ loading
1722
+ results
1723
+ no results
1724
+ error
1725
+ ```
1726
+
1727
+ .
1728
+
1729
+ # 137. SEARCH DEBOUNCING
1730
+
1731
+ Where appropriate, avoid triggering expensive operations for every keystroke.
1732
+
1733
+ # 138. SEARCH RESULT CONTINUITY
1734
+
1735
+ Do not unnecessarily reset:
1736
+
1737
+ ```text
1738
+ scroll
1739
+ selection
1740
+ query
1741
+ filters
1742
+ ```
1743
+
1744
+ during ordinary search interactions.
1745
+
1746
+ # 139. KEYBOARD + SEARCH
1747
+
1748
+ The keyboard should support the search task rather than obstructing results.
1749
+
1750
+ # 140. FOCUS + SEARCH
1751
+
1752
+ When entering search mode:
1753
+
1754
+ ```text
1755
+ focus field
1756
+ show keyboard
1757
+ preserve context
1758
+ ```
1759
+
1760
+ where appropriate.
1761
+
1762
+ # 141. MEDIA INTERACTIONS
1763
+
1764
+ For media applications, interactions should distinguish:
1765
+
1766
+ ```text
1767
+ tap
1768
+ scrub
1769
+ long press
1770
+ queue
1771
+ download
1772
+ favorite
1773
+ share
1774
+ ```
1775
+
1776
+ .
1777
+
1778
+ # 142. PLAYBACK FEEDBACK
1779
+
1780
+ Playback should have immediate state feedback:
1781
+
1782
+ ```text
1783
+ play
1784
+ ↓
1785
+ pause
1786
+ ```
1787
+
1788
+ and:
1789
+
1790
+ ```text
1791
+ loading
1792
+ buffering
1793
+ playing
1794
+ paused
1795
+ error
1796
+ ```
1797
+
1798
+ when applicable.
1799
+
1800
+ # 143. SCRUBBING
1801
+
1802
+ Scrubbing should provide precise feedback.
1803
+
1804
+ Consider:
1805
+
1806
+ ```text
1807
+ position
1808
+ elapsed time
1809
+ remaining time
1810
+ preview
1811
+ haptic
1812
+ ```
1813
+
1814
+ depending on media type.
1815
+
1816
+ # 144. QUEUE INTERACTIONS
1817
+
1818
+ Queue operations should be predictable:
1819
+
1820
+ ```text
1821
+ Play next
1822
+ Add to queue
1823
+ Remove
1824
+ Reorder
1825
+ Clear
1826
+ ```
1827
+
1828
+ .
1829
+
1830
+ # 145. PLAY-NEXT FEEDBACK
1831
+
1832
+ When adding an item to play next, communicate:
1833
+
1834
+ ```text
1835
+ item added
1836
+ position in queue
1837
+ ```
1838
+
1839
+ when useful.
1840
+
1841
+ # 146. MEDIA GESTURES
1842
+
1843
+ Potential gestures:
1844
+
1845
+ ```text
1846
+ swipe artwork
1847
+ drag progress
1848
+ swipe mini-player
1849
+ ```
1850
+
1851
+ should not conflict with system navigation gestures.
1852
+
1853
+ # 147. INTERACTION WITH SYSTEM GESTURES
1854
+
1855
+ Never design critical controls directly on top of system gesture areas without
1856
+ considering conflicts.
1857
+
1858
+ # 148. SAFE INTERACTION ZONES
1859
+
1860
+ Important controls should remain comfortably away from:
1861
+
1862
+ ```text
1863
+ system gesture areas
1864
+ screen edges
1865
+ hardware cutouts
1866
+ ```
1867
+
1868
+ where appropriate.
1869
+
1870
+ # 149. EDGE GESTURES
1871
+
1872
+ Be careful with:
1873
+
1874
+ ```text
1875
+ horizontal swipe
1876
+ ```
1877
+
1878
+ near navigation edges.
1879
+
1880
+ System navigation may compete with the gesture.
1881
+
1882
+ # 150. INTERACTION PERFORMANCE
1883
+
1884
+ Interactions must remain responsive.
1885
+
1886
+ Avoid heavy work directly inside:
1887
+
1888
+ ```text
1889
+ touch handlers
1890
+ gesture callbacks
1891
+ animation frames
1892
+ ```
1893
+
1894
+ .
1895
+
1896
+ # 151. ANIMATION THREAD
1897
+
1898
+ Where the framework supports it, time-sensitive gesture animation should run
1899
+ outside the main JavaScript execution path when appropriate.
1900
+
1901
+ # 152. GESTURE PERFORMANCE
1902
+
1903
+ Avoid:
1904
+
1905
+ ```text
1906
+ network request
1907
+ database query
1908
+ large computation
1909
+ ```
1910
+
1911
+ directly inside continuous gesture updates.
1912
+
1913
+ # 153. STATE UPDATE PERFORMANCE
1914
+
1915
+ During high-frequency interactions:
1916
+
1917
+ ```text
1918
+ drag
1919
+ scroll
1920
+ pinch
1921
+ scrub
1922
+ ```
1923
+
1924
+ minimize unnecessary application-wide state updates.
1925
+
1926
+ # 154. INTERACTION INTERRUPTIONS
1927
+
1928
+ If the user is performing an interaction, avoid suddenly changing the underlying
1929
+ content unless necessary.
1930
+
1931
+ # 155. DYNAMIC CONTENT
1932
+
1933
+ If content updates while the user interacts:
1934
+
1935
+ ```text
1936
+ preserve position
1937
+ preserve identity
1938
+ avoid unexpected jumps
1939
+ ```
1940
+
1941
+ where possible.
1942
+
1943
+ # 156. INTERRUPTION RECOVERY
1944
+
1945
+ If an interaction is interrupted:
1946
+
1947
+ ```text
1948
+ restore stable state
1949
+ ```
1950
+
1951
+ rather than leaving a partially updated UI.
1952
+
1953
+ # 157. INTERACTION ACCESSIBILITY
1954
+
1955
+ Every important gesture should have an alternative accessible action where
1956
+ possible.
1957
+
1958
+ # 158. ACCESSIBLE DRAGGING
1959
+
1960
+ Reordering should not depend solely on dragging.
1961
+
1962
+ Provide an accessible alternative such as actions or controls where appropriate.
1963
+
1964
+ # 159. ACCESSIBLE SWIPE
1965
+
1966
+ Important swipe actions should also be exposed through accessible actions or
1967
+ menus.
1968
+
1969
+ # 160. ACCESSIBLE LONG PRESS
1970
+
1971
+ Contextual actions should be available without requiring precise long-press
1972
+ timing where appropriate.
1973
+
1974
+ # 161. REDUCED MOTION
1975
+
1976
+ Respect reduced-motion preferences.
1977
+
1978
+ Replace:
1979
+
1980
+ ```text
1981
+ large movement
1982
+ complex transitions
1983
+ ```
1984
+
1985
+ with:
1986
+
1987
+ ```text
1988
+ fade
1989
+ simple state change
1990
+ minimal movement
1991
+ ```
1992
+
1993
+ when appropriate.
1994
+
1995
+ # 162. REDUCED HAPTICS
1996
+
1997
+ Where platform settings allow haptic reduction or disabling, respect user
1998
+ preferences.
1999
+
2000
+ # 163. CONTRAST
2001
+
2002
+ Interaction states must remain visually distinguishable.
2003
+
2004
+ Do not rely solely on:
2005
+
2006
+ ```text
2007
+ subtle color shift
2008
+ ```
2009
+
2010
+ if it becomes imperceptible.
2011
+
2012
+ # 164. FOCUS + COLOR
2013
+
2014
+ Focus should not rely exclusively on color.
2015
+
2016
+ # 165. SELECTED STATE
2017
+
2018
+ Selection should be recognizable through more than one signal when necessary:
2019
+
2020
+ ```text
2021
+ color
2022
+ shape
2023
+ icon
2024
+ position
2025
+ ```
2026
+
2027
+ .
2028
+
2029
+ # 166. ERROR + COLOR
2030
+
2031
+ Errors should not be communicated only with red.
2032
+
2033
+ Use:
2034
+
2035
+ ```text
2036
+ icon
2037
+ text
2038
+ state
2039
+ ```
2040
+
2041
+ where appropriate.
2042
+
2043
+ # 167. MOTION ACCESSIBILITY
2044
+
2045
+ Motion should communicate meaning, not create visual spectacle.
2046
+
2047
+ # 168. MOTION CONTINUITY
2048
+
2049
+ Good motion answers:
2050
+
2051
+ ```text
2052
+ Where did this come from?
2053
+ Where did it go?
2054
+ What changed?
2055
+ ```
2056
+
2057
+ .
2058
+
2059
+ # 169. MOTION SPEED
2060
+
2061
+ Animation duration should correspond to:
2062
+
2063
+ ```text
2064
+ distance
2065
+ importance
2066
+ interaction type
2067
+ ```
2068
+
2069
+ Avoid making every animation the same duration.
2070
+
2071
+ # 170. INTERRUPTIBLE ANIMATION
2072
+
2073
+ Where possible, animations should respond naturally to new user input.
2074
+
2075
+ Avoid forcing users to wait for an animation to finish before continuing.
2076
+
2077
+ # 171. GESTURE-DRIVEN ANIMATION
2078
+
2079
+ Gesture position may directly control visual state.
2080
+
2081
+ Example:
2082
+
2083
+ ```text
2084
+ drag progress
2085
+ ↓
2086
+ sheet position
2087
+ ↓
2088
+ interactive transition
2089
+ ```
2090
+
2091
+ .
2092
+
2093
+ # 172. SPRING MOTION
2094
+
2095
+ Spring-like motion can communicate physical continuity.
2096
+
2097
+ Use it where it reinforces the interaction.
2098
+
2099
+ Do not apply spring animation indiscriminately.
2100
+
2101
+ # 173. OVERSHOOT
2102
+
2103
+ Overshoot should be subtle.
2104
+
2105
+ Excessive bounce can make professional applications feel playful or unstable.
2106
+
2107
+ # 174. INTERACTION SOUND
2108
+
2109
+ Sound can reinforce certain actions but should never be mandatory for
2110
+ understanding ordinary interface state.
2111
+
2112
+ # 175. SYSTEM FEEDBACK
2113
+
2114
+ Where possible, use platform-standard feedback mechanisms rather than inventing
2115
+ completely custom behavior.
2116
+
2117
+ # 176. PLATFORM CONVENTIONS
2118
+
2119
+ Before inventing an interaction, ask:
2120
+
2121
+ ```text
2122
+ Does iOS already have a familiar pattern?
2123
+ ```
2124
+
2125
+ If yes:
2126
+
2127
+ ```text
2128
+ prefer the familiar pattern
2129
+ ```
2130
+
2131
+ unless the product has a compelling reason to diverge.
2132
+
2133
+ # 177. CUSTOM INTERACTION
2134
+
2135
+ Custom interactions are justified when:
2136
+
2137
+ ```text
2138
+ product domain requires them
2139
+ ```
2140
+
2141
+ or:
2142
+
2143
+ ```text
2144
+ standard interaction does not adequately solve the task
2145
+ ```
2146
+
2147
+ .
2148
+
2149
+ # 178. CUSTOM INTERACTION COST
2150
+
2151
+ Every custom gesture introduces:
2152
+
2153
+ ```text
2154
+ learning cost
2155
+ accessibility cost
2156
+ testing cost
2157
+ maintenance cost
2158
+ ```
2159
+
2160
+ .
2161
+
2162
+ # 179. INTERACTION TESTING
2163
+
2164
+ Test:
2165
+
2166
+ ```text
2167
+ tap
2168
+ hold
2169
+ drag
2170
+ cancel
2171
+ repeat
2172
+ interrupt
2173
+ rotate
2174
+ resize
2175
+ keyboard
2176
+ accessibility
2177
+ ```
2178
+
2179
+ where relevant.
2180
+
2181
+ # 180. EDGE CASES
2182
+
2183
+ Test:
2184
+
2185
+ ```text
2186
+ slow interaction
2187
+ fast interaction
2188
+ accidental movement
2189
+ double tap
2190
+ backgrounding
2191
+ returning
2192
+ network failure
2193
+ empty state
2194
+ large content
2195
+ ```
2196
+
2197
+ .
2198
+
2199
+ # 181. BACKGROUND / FOREGROUND
2200
+
2201
+ When the application leaves foreground:
2202
+
2203
+ ```text
2204
+ pause or preserve interaction
2205
+ ```
2206
+
2207
+ according to task semantics.
2208
+
2209
+ Do not lose user work unnecessarily.
2210
+
2211
+ # 182. INTERRUPTED FORMS
2212
+
2213
+ If a form is interrupted:
2214
+
2215
+ ```text
2216
+ preserve input
2217
+ ```
2218
+
2219
+ where practical.
2220
+
2221
+ # 183. INTERRUPTED MEDIA
2222
+
2223
+ Media applications should preserve playback state according to the intended
2224
+ product behavior.
2225
+
2226
+ # 184. INTERACTION MEMORY
2227
+
2228
+ Remember meaningful user state when appropriate:
2229
+
2230
+ ```text
2231
+ last tab
2232
+ last filter
2233
+ last position
2234
+ expanded section
2235
+ ```
2236
+
2237
+ but avoid retaining transient states that create confusion.
2238
+
2239
+ # 185. INTERACTION RESET
2240
+
2241
+ Reset state when:
2242
+
2243
+ ```text
2244
+ the context changes
2245
+ ```
2246
+
2247
+ and retaining it would mislead the user.
2248
+
2249
+ # 186. INTERACTION OWNERSHIP
2250
+
2251
+ Every interaction should have a clear owner:
2252
+
2253
+ ```text
2254
+ component
2255
+ pattern
2256
+ screen
2257
+ application
2258
+ system
2259
+ ```
2260
+
2261
+ Avoid multiple layers competing to handle the same action.
2262
+
2263
+ # 187. EVENT PROPAGATION
2264
+
2265
+ Be careful with nested interactions.
2266
+
2267
+ A child action should not accidentally trigger the parent's action.
2268
+
2269
+ # 188. EVENT PRIORITY
2270
+
2271
+ When nested controls exist:
2272
+
2273
+ ```text
2274
+ specific control
2275
+ ↓
2276
+ parent container
2277
+ ```
2278
+
2279
+ The specific action should generally take precedence.
2280
+
2281
+ # 189. INTERACTION BOUNDARIES
2282
+
2283
+ Make interactive regions visually and behaviorally clear.
2284
+
2285
+ # 190. ACTION GROUPING
2286
+
2287
+ Related actions should be grouped.
2288
+
2289
+ Example:
2290
+
2291
+ ```text
2292
+ Playback
2293
+ [Previous] [Play] [Next]
2294
+ ```
2295
+
2296
+ rather than scattering controls across unrelated regions.
2297
+
2298
+ # 191. ACTION ORDER
2299
+
2300
+ Action order should reflect:
2301
+
2302
+ ```text
2303
+ frequency
2304
+ importance
2305
+ workflow
2306
+ platform convention
2307
+ ```
2308
+
2309
+ .
2310
+
2311
+ # 192. ACTION LABELING
2312
+
2313
+ Use verbs.
2314
+
2315
+ Prefer:
2316
+
2317
+ ```text
2318
+ Save
2319
+ Delete
2320
+ Share
2321
+ Move
2322
+ Download
2323
+ ```
2324
+
2325
+ over ambiguous nouns where action is intended.
2326
+
2327
+ # 193. FEEDBACK AFTER ACTION
2328
+
2329
+ Every important action should produce an observable result.
2330
+
2331
+ If the result is not visually obvious:
2332
+
2333
+ ```text
2334
+ provide feedback
2335
+ ```
2336
+
2337
+ .
2338
+
2339
+ # 194. NO-OP ACTIONS
2340
+
2341
+ Avoid controls that appear interactive but produce no meaningful response.
2342
+
2343
+ # 195. DISABLED ACTIONS
2344
+
2345
+ If an action is unavailable:
2346
+
2347
+ ```text
2348
+ explain why
2349
+ ```
2350
+
2351
+ when the reason matters.
2352
+
2353
+ # 196. INTERACTION PRIORITY MATRIX
2354
+
2355
+ The agent should classify actions:
2356
+
2357
+ ```text
2358
+ HIGH FREQUENCY
2359
+ │
2360
+ primary ──────┼────── shortcut
2361
+ │
2362
+ contextual ─────┼────── advanced
2363
+ │
2364
+ LOW FREQUENCY
2365
+ ```
2366
+
2367
+ The exact UI placement should reflect frequency and importance.
2368
+
2369
+ # 197. INTERACTION COMPLEXITY
2370
+
2371
+ A good interaction minimizes:
2372
+
2373
+ ```text
2374
+ physical effort
2375
+ cognitive effort
2376
+ memory effort
2377
+ navigation effort
2378
+ ```
2379
+
2380
+ .
2381
+
2382
+ # 198. INTERACTION QUALITY TEST
2383
+
2384
+ Ask:
2385
+
2386
+ ```text
2387
+ Can the user understand what is interactive?
2388
+
2389
+ Does the interface respond immediately?
2390
+
2391
+ Can the user recover from mistakes?
2392
+
2393
+ Can the action be performed accessibly?
2394
+
2395
+ Does the interaction work across screen sizes?
2396
+
2397
+ Does the interaction feel native?
2398
+
2399
+ Is the interaction simpler than the alternative?
2400
+ ```
2401
+
2402
+ # 199. AGENT INTERACTION WORKFLOW
2403
+
2404
+ ```text
2405
+ USER GOAL
2406
+ ↓
2407
+ IDENTIFY ACTION
2408
+ ↓
2409
+ SELECT NATIVE PATTERN
2410
+ ↓
2411
+ DEFINE PRIMARY INTERACTION
2412
+ ↓
2413
+ DEFINE FEEDBACK
2414
+ ↓
2415
+ DEFINE STATE TRANSITIONS
2416
+ ↓
2417
+ DEFINE ERROR / RECOVERY
2418
+ ↓
2419
+ DEFINE ACCESSIBILITY
2420
+ ↓
2421
+ DEFINE ADAPTIVE BEHAVIOR
2422
+ ↓
2423
+ IMPLEMENT
2424
+ ↓
2425
+ TEST INTERRUPTIONS
2426
+ ↓
2427
+ TEST EDGE CASES
2428
+ ```
2429
+
2430
+ # 200. MASTER INTERACTION MODEL
2431
+
2432
+ ```text
2433
+ USER INTENT
2434
+ │
2435
+ ↓
2436
+ DISCOVERY
2437
+ │
2438
+ ↓
2439
+ ACTION
2440
+ │
2441
+ ┌───────────┼───────────┐
2442
+ ↓ ↓ ↓
2443
+ VISUAL HAPTIC AUDIO
2444
+ FEEDBACK FEEDBACK FEEDBACK
2445
+ │ │ │
2446
+ └───────────┼───────────┘
2447
+ ↓
2448
+ STATE CHANGE
2449
+ │
2450
+ ↓
2451
+ RESULT
2452
+ │
2453
+ ┌──────┴──────┐
2454
+ ↓ ↓
2455
+ SUCCESS ERROR
2456
+ │ │
2457
+ ↓ ↓
2458
+ CONFIRM RECOVER
2459
+ ```
2460
+
2461
+ # 201. FINAL PRINCIPLE
2462
+
2463
+ The agent should never ask only:
2464
+
2465
+ > "What should this button look like?"
2466
+
2467
+ It should ask:
2468
+
2469
+ > "What does the user believe will happen when they interact with this?"
2470
+
2471
+ Then design:
2472
+
2473
+ ```text
2474
+ discoverability
2475
+ ↓
2476
+ interaction
2477
+ ↓
2478
+ feedback
2479
+ ↓
2480
+ state
2481
+ ↓
2482
+ recovery
2483
+ ```
2484
+
2485
+ .
2486
+
2487
+ # 202. FINAL AGENT DIRECTIVE
2488
+
2489
+ Before implementing an interaction:
2490
+
2491
+ ```text
2492
+ 1. Identify the user's goal.
2493
+ 2. Check for an established platform pattern.
2494
+ 3. Select the simplest appropriate interaction.
2495
+ 4. Make the interaction discoverable.
2496
+ 5. Define immediate feedback.
2497
+ 6. Define state transitions.
2498
+ 7. Define failure and recovery.
2499
+ 8. Define accessibility alternatives.
2500
+ 9. Define compact and expanded behavior.
2501
+ 10. Test interruption and edge cases.
2502
+ ```
2503
+
2504
+ The goal is not to make the interface "animated."
2505
+
2506
+ The goal is to make the interface **responsive, understandable, forgiving,
2507
+ physical, and intentional.**
2508
+
2509
+ That is interaction intelligence.
2510
+
2511
+ ````
2512
+
2513
+