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,2172 @@
1
+
2
+
3
+ ````md
4
+ # Apple Component Intelligence
5
+
6
+ > Agent knowledge module for selecting, composing, adapting, and evaluating
7
+ > interface components for iOS and iPadOS.
8
+
9
+ Version: 1.0
10
+ Platform: iOS / iPadOS
11
+ Role: Component intelligence
12
+ Parent: knowledge/apple/typography.md
13
+ Use with: MobileUI-OS
14
+
15
+ ---
16
+
17
+ # 1. PURPOSE
18
+
19
+ Components are reusable interaction patterns.
20
+
21
+ They are not merely visual objects.
22
+
23
+ A component defines:
24
+
25
+ - appearance
26
+ - behavior
27
+ - interaction
28
+ - state
29
+ - hierarchy
30
+ - accessibility
31
+ - feedback
32
+ - platform expectations
33
+
34
+ The agent must therefore choose components based on the user's task rather
35
+ than visual preference.
36
+
37
+ ---
38
+
39
+ # 2. CORE PRINCIPLE
40
+
41
+ Never ask:
42
+
43
+ > What component looks good here?
44
+
45
+ Ask:
46
+
47
+ > What interaction does the user need?
48
+
49
+ Then:
50
+
51
+ ```text
52
+ USER INTENT
53
+ ↓
54
+ INTERACTION TYPE
55
+ ↓
56
+ PLATFORM PATTERN
57
+ ↓
58
+ COMPONENT
59
+ ↓
60
+ STATE
61
+ ↓
62
+ ACCESSIBILITY
63
+ ↓
64
+ VISUAL CUSTOMIZATION
65
+ ````
66
+
67
+ ---
68
+
69
+ # 3. COMPONENT SELECTION PRIORITY
70
+
71
+ When solving an interface problem, prefer:
72
+
73
+ ```text
74
+ 1. Existing platform pattern
75
+ ↓
76
+ 2. Existing project component
77
+ ↓
78
+ 3. Adapted platform pattern
79
+ ↓
80
+ 4. New reusable component
81
+ ↓
82
+ 5. Fully custom interaction
83
+ ```
84
+
85
+ The agent should not jump directly to custom UI.
86
+
87
+ ---
88
+
89
+ # 4. NATIVE VS CUSTOM
90
+
91
+ Use a native/platform pattern when:
92
+
93
+ * users already understand it
94
+ * the behavior is standard
95
+ * accessibility matters
96
+ * system integration matters
97
+ * platform conventions are important
98
+
99
+ Consider custom UI when:
100
+
101
+ * the product requires a unique interaction
102
+ * the visual identity materially benefits from customization
103
+ * the native pattern cannot express the required behavior
104
+ * the custom interaction provides measurable usability value
105
+
106
+ ---
107
+
108
+ # 5. CUSTOM DOES NOT MEAN UNFAMILIAR
109
+
110
+ A custom component should preserve familiar principles.
111
+
112
+ Example:
113
+
114
+ A custom music player may have:
115
+
116
+ ```text
117
+ custom visuals
118
+ +
119
+ custom animation
120
+ +
121
+ custom artwork
122
+ ```
123
+
124
+ while retaining:
125
+
126
+ ```text
127
+ predictable play/pause
128
+ predictable seek
129
+ predictable queue
130
+ predictable navigation
131
+ ```
132
+
133
+ ---
134
+
135
+ # 6. COMPONENT CONTRACT
136
+
137
+ Every component should have a conceptual contract:
138
+
139
+ ```text
140
+ Purpose
141
+ Inputs
142
+ States
143
+ Interactions
144
+ Feedback
145
+ Accessibility
146
+ Platform behavior
147
+ Responsive behavior
148
+ ```
149
+
150
+ Example:
151
+
152
+ ```text
153
+ Button
154
+ ↓
155
+ Purpose: trigger action
156
+ ↓
157
+ States:
158
+ default
159
+ pressed
160
+ disabled
161
+ loading
162
+ focused
163
+ ↓
164
+ Feedback:
165
+ visual
166
+ haptic where appropriate
167
+ ↓
168
+ Accessibility:
169
+ label
170
+ role
171
+ state
172
+ ```
173
+
174
+ ---
175
+
176
+ # 7. COMPONENT STATES
177
+
178
+ Never design only the default state.
179
+
180
+ At minimum consider:
181
+
182
+ ```text
183
+ default
184
+ pressed
185
+ focused
186
+ selected
187
+ disabled
188
+ loading
189
+ error
190
+ success
191
+ active
192
+ inactive
193
+ ```
194
+
195
+ Not every component needs every state.
196
+
197
+ The agent should determine which states are meaningful.
198
+
199
+ ---
200
+
201
+ # 8. BUTTONS
202
+
203
+ Buttons trigger actions.
204
+
205
+ Use buttons for:
206
+
207
+ * save
208
+ * create
209
+ * continue
210
+ * play
211
+ * share
212
+ * download
213
+ * confirm
214
+
215
+ Do not use button styling for elements that merely navigate unless the
216
+ visual hierarchy calls for it.
217
+
218
+ ---
219
+
220
+ # 9. BUTTON HIERARCHY
221
+
222
+ Buttons can be conceptually categorized as:
223
+
224
+ ```text
225
+ Primary
226
+ Secondary
227
+ Tertiary
228
+ Destructive
229
+ ```
230
+
231
+ Primary:
232
+
233
+ ```text
234
+ most important action
235
+ ```
236
+
237
+ Secondary:
238
+
239
+ ```text
240
+ supporting action
241
+ ```
242
+
243
+ Tertiary:
244
+
245
+ ```text
246
+ low-emphasis action
247
+ ```
248
+
249
+ Destructive:
250
+
251
+ ```text
252
+ irreversible or harmful action
253
+ ```
254
+
255
+ ---
256
+
257
+ # 10. BUTTON CONTENT
258
+
259
+ A button should normally communicate:
260
+
261
+ ```text
262
+ action
263
+ ```
264
+
265
+ Examples:
266
+
267
+ ```text
268
+ Save
269
+ Create
270
+ Download
271
+ Share
272
+ Delete
273
+ Add to Playlist
274
+ ```
275
+
276
+ Avoid ambiguous labels when context is insufficient.
277
+
278
+ ---
279
+
280
+ # 11. ICON BUTTONS
281
+
282
+ Icon-only controls are useful when the icon's meaning is well established.
283
+
284
+ Examples:
285
+
286
+ ```text
287
+ search
288
+ close
289
+ play
290
+ pause
291
+ more
292
+ back
293
+ share
294
+ ```
295
+
296
+ Do not use obscure icons for important actions without additional context.
297
+
298
+ ---
299
+
300
+ # 12. ICON BUTTON ACCESSIBILITY
301
+
302
+ Every icon-only control needs a meaningful accessibility label.
303
+
304
+ Visual:
305
+
306
+ ```text
307
+ ⋯
308
+ ```
309
+
310
+ Accessibility:
311
+
312
+ ```text
313
+ More options
314
+ ```
315
+
316
+ The visible representation and semantic meaning are different layers.
317
+
318
+ ---
319
+
320
+ # 13. BUTTON TOUCH AREA
321
+
322
+ Small visual icons should still have comfortable interaction regions.
323
+
324
+ Conceptually:
325
+
326
+ ```text
327
+ ┌─────────────┐
328
+ │ │
329
+ │ ● │
330
+ │ │
331
+ └─────────────┘
332
+ ```
333
+
334
+ The icon may be small.
335
+
336
+ The interactive region should remain comfortable.
337
+
338
+ ---
339
+
340
+ # 14. BUTTON STATES
341
+
342
+ A robust button should consider:
343
+
344
+ ```text
345
+ default
346
+ pressed
347
+ disabled
348
+ loading
349
+ success
350
+ error
351
+ ```
352
+
353
+ Loading should prevent accidental repeated submission when appropriate.
354
+
355
+ ---
356
+
357
+ # 15. LOADING BUTTONS
358
+
359
+ Avoid:
360
+
361
+ ```text
362
+ [Save]
363
+ ```
364
+
365
+ remaining apparently interactive while an operation is already running.
366
+
367
+ Prefer:
368
+
369
+ ```text
370
+ [Saving...]
371
+ ```
372
+
373
+ or an equivalent state that clearly communicates progress.
374
+
375
+ Do not unnecessarily replace the entire interface with a loading screen.
376
+
377
+ ---
378
+
379
+ # 16. DESTRUCTIVE BUTTONS
380
+
381
+ Destructive actions should be distinguishable.
382
+
383
+ Examples:
384
+
385
+ ```text
386
+ Delete
387
+ Remove permanently
388
+ Reset
389
+ Erase
390
+ ```
391
+
392
+ Consider confirmation or undo depending on reversibility.
393
+
394
+ ---
395
+
396
+ # 17. TOGGLES
397
+
398
+ Toggles represent an immediate binary state.
399
+
400
+ Examples:
401
+
402
+ ```text
403
+ Dark Mode
404
+ Notifications
405
+ Auto-play
406
+ Background Playback
407
+ Sync
408
+ ```
409
+
410
+ Use a toggle when the action means:
411
+
412
+ ```text
413
+ ON ↔ OFF
414
+ ```
415
+
416
+ Do not use toggles for actions that require another step before taking effect.
417
+
418
+ ---
419
+
420
+ # 18. TOGGLE RULE
421
+
422
+ A toggle should communicate current state.
423
+
424
+ Bad:
425
+
426
+ ```text
427
+ Enable notifications
428
+ ```
429
+
430
+ with no obvious state.
431
+
432
+ Better:
433
+
434
+ ```text
435
+ Notifications [ ON ]
436
+ ```
437
+
438
+ The user should immediately understand whether the setting is active.
439
+
440
+ ---
441
+
442
+ # 19. TOGGLE VS BUTTON
443
+
444
+ Use:
445
+
446
+ ```text
447
+ Toggle
448
+ ```
449
+
450
+ for changing a persistent state.
451
+
452
+ Use:
453
+
454
+ ```text
455
+ Button
456
+ ```
457
+
458
+ for triggering an action.
459
+
460
+ Example:
461
+
462
+ ```text
463
+ Dark Mode [ ON ]
464
+ ```
465
+
466
+ vs:
467
+
468
+ ```text
469
+ Apply Dark Mode [Button]
470
+ ```
471
+
472
+ These are different interaction models.
473
+
474
+ ---
475
+
476
+ # 20. CHECKBOXES
477
+
478
+ Checkbox-like controls represent selection, especially where multiple items
479
+ may be selected.
480
+
481
+ Example:
482
+
483
+ ```text
484
+ ☑ Song A
485
+ ☐ Song B
486
+ ☑ Song C
487
+ ```
488
+
489
+ Multiple selections are expected.
490
+
491
+ ---
492
+
493
+ # 21. RADIO SELECTION
494
+
495
+ Use radio-style selection when:
496
+
497
+ ```text
498
+ one option
499
+ ```
500
+
501
+ must be chosen from:
502
+
503
+ ```text
504
+ multiple mutually exclusive options
505
+ ```
506
+
507
+ Example:
508
+
509
+ ```text
510
+ ○ Wi-Fi
511
+ ● Cellular
512
+ ○ Offline
513
+ ```
514
+
515
+ ---
516
+
517
+ # 22. SINGLE VS MULTI SELECT
518
+
519
+ The agent must determine:
520
+
521
+ ```text
522
+ Can multiple choices be active?
523
+ ```
524
+
525
+ If:
526
+
527
+ ```text
528
+ YES
529
+ ```
530
+
531
+ use a multi-select pattern.
532
+
533
+ If:
534
+
535
+ ```text
536
+ NO
537
+ ```
538
+
539
+ use a single-select pattern.
540
+
541
+ Do not make the visual appearance determine the semantic behavior.
542
+
543
+ ---
544
+
545
+ # 23. SEGMENTED CONTROLS
546
+
547
+ Segmented controls are useful for switching between closely related modes.
548
+
549
+ Example:
550
+
551
+ ```text
552
+ [Day] [Week] [Month]
553
+ ```
554
+
555
+ or:
556
+
557
+ ```text
558
+ [Grid] [List]
559
+ ```
560
+
561
+ Use them when the options are:
562
+
563
+ * few
564
+ * mutually exclusive
565
+ * conceptually related
566
+ * frequently switched
567
+
568
+ ---
569
+
570
+ # 24. SEGMENTED CONTROL ANTI-PATTERN
571
+
572
+ Do not use segmented controls for unrelated destinations.
573
+
574
+ Bad:
575
+
576
+ ```text
577
+ [Home] [Music] [Settings] [Profile]
578
+ ```
579
+
580
+ These are destinations.
581
+
582
+ Use navigation instead.
583
+
584
+ ---
585
+
586
+ # 25. PICKERS
587
+
588
+ Pickers are appropriate when users need to choose from a known set of values.
589
+
590
+ Examples:
591
+
592
+ ```text
593
+ Sort by:
594
+ Name
595
+ Date
596
+ Size
597
+ Type
598
+ ```
599
+
600
+ or:
601
+
602
+ ```text
603
+ Theme:
604
+ System
605
+ Light
606
+ Dark
607
+ ```
608
+
609
+ The agent should consider:
610
+
611
+ * number of options
612
+ * frequency of selection
613
+ * importance
614
+ * available space
615
+
616
+ ---
617
+
618
+ # 26. MENUS
619
+
620
+ Menus expose secondary actions or choices.
621
+
622
+ Use them when:
623
+
624
+ * actions are contextual
625
+ * space is limited
626
+ * the actions are not primary
627
+
628
+ Example:
629
+
630
+ ```text
631
+ More
632
+ ├─ Rename
633
+ ├─ Move
634
+ ├─ Duplicate
635
+ └─ Delete
636
+ ```
637
+
638
+ Do not hide essential actions exclusively inside menus.
639
+
640
+ ---
641
+
642
+ # 27. CONTEXT MENUS
643
+
644
+ Contextual menus are useful for item-specific operations.
645
+
646
+ Example:
647
+
648
+ ```text
649
+ Long press playlist
650
+ ↓
651
+ Rename
652
+ Share
653
+ Duplicate
654
+ Delete
655
+ ```
656
+
657
+ The context should make the relationship clear.
658
+
659
+ ---
660
+
661
+ # 28. ACTION SHEETS
662
+
663
+ Action sheets are useful when a user must choose among contextual actions.
664
+
665
+ Example:
666
+
667
+ ```text
668
+ Share
669
+ Move
670
+ Rename
671
+ Delete
672
+ Cancel
673
+ ```
674
+
675
+ Use them when temporary focus is appropriate.
676
+
677
+ Do not turn routine navigation into action sheets.
678
+
679
+ ---
680
+
681
+ # 29. SHEET SIZING
682
+
683
+ A sheet should expose enough content to perform its task without unnecessary
684
+ empty space.
685
+
686
+ Avoid:
687
+
688
+ ```text
689
+ tiny content
690
+ +
691
+ huge empty sheet
692
+ ```
693
+
694
+ and:
695
+
696
+ ```text
697
+ huge sheet
698
+ +
699
+ single trivial action
700
+ ```
701
+
702
+ unless the interaction requires the larger presentation.
703
+
704
+ ---
705
+
706
+ # 30. SHEET HIERARCHY
707
+
708
+ A sheet should communicate:
709
+
710
+ ```text
711
+ why it appeared
712
+ what task is happening
713
+ what choices are available
714
+ how to dismiss it
715
+ ```
716
+
717
+ The content should feel related to the underlying context.
718
+
719
+ ---
720
+
721
+ # 31. MODALS
722
+
723
+ Use modal presentation for focused tasks that temporarily interrupt the
724
+ normal workflow.
725
+
726
+ Good:
727
+
728
+ ```text
729
+ Create new playlist
730
+ Edit account information
731
+ Confirm important decision
732
+ ```
733
+
734
+ Poor:
735
+
736
+ ```text
737
+ Open settings
738
+ View details
739
+ Read information
740
+ ```
741
+
742
+ when a normal navigation destination would be clearer.
743
+
744
+ ---
745
+
746
+ # 32. ALERTS
747
+
748
+ Alerts are interruptions.
749
+
750
+ Use them for:
751
+
752
+ * critical errors
753
+ * destructive confirmation
754
+ * important decisions
755
+
756
+ Avoid alerts for ordinary status updates.
757
+
758
+ ---
759
+
760
+ # 33. ALERT LANGUAGE
761
+
762
+ Good:
763
+
764
+ ```text
765
+ Delete this playlist?
766
+
767
+ This action cannot be undone.
768
+
769
+ [Cancel] [Delete]
770
+ ```
771
+
772
+ Bad:
773
+
774
+ ```text
775
+ WARNING!!!
776
+
777
+ ARE YOU SURE???
778
+ ```
779
+
780
+ Use concise, calm language.
781
+
782
+ ---
783
+
784
+ # 34. SEARCH
785
+
786
+ Search is both a component and an interaction system.
787
+
788
+ It should support:
789
+
790
+ ```text
791
+ idle
792
+ active
793
+ typing
794
+ loading
795
+ results
796
+ empty
797
+ error
798
+ ```
799
+
800
+ ---
801
+
802
+ # 35. SEARCH FIELD
803
+
804
+ A search field should communicate:
805
+
806
+ * what is searchable
807
+ * current query
808
+ * clear action
809
+ * loading state where appropriate
810
+
811
+ Example:
812
+
813
+ ```text
814
+ 🔍 Search music
815
+ ```
816
+
817
+ Do not make users guess what the field searches.
818
+
819
+ ---
820
+
821
+ # 36. SEARCH RESULTS
822
+
823
+ Results should preserve the search context.
824
+
825
+ Example:
826
+
827
+ ```text
828
+ Search: "juice"
829
+
830
+ Artists
831
+ ...
832
+
833
+ Tracks
834
+ ...
835
+
836
+ Albums
837
+ ...
838
+ ```
839
+
840
+ The result hierarchy should match the product.
841
+
842
+ ---
843
+
844
+ # 37. EMPTY SEARCH RESULTS
845
+
846
+ Do not display only:
847
+
848
+ ```text
849
+ No results.
850
+ ```
851
+
852
+ when additional guidance is possible.
853
+
854
+ Consider:
855
+
856
+ ```text
857
+ No results for "xyz"
858
+
859
+ Try a different search term.
860
+ ```
861
+
862
+ ---
863
+
864
+ # 38. INPUT FIELDS
865
+
866
+ Inputs should communicate:
867
+
868
+ ```text
869
+ label
870
+ value
871
+ state
872
+ validation
873
+ ```
874
+
875
+ Potential states:
876
+
877
+ ```text
878
+ empty
879
+ focused
880
+ filled
881
+ error
882
+ disabled
883
+ success
884
+ ```
885
+
886
+ ---
887
+
888
+ # 39. LABEL VS PLACEHOLDER
889
+
890
+ Do not rely on placeholder text as the only label for important fields.
891
+
892
+ Placeholder:
893
+
894
+ ```text
895
+ john@example.com
896
+ ```
897
+
898
+ Label:
899
+
900
+ ```text
901
+ Email address
902
+ ```
903
+
904
+ The user should retain context after entering text.
905
+
906
+ ---
907
+
908
+ # 40. INPUT VALIDATION
909
+
910
+ Validation should be:
911
+
912
+ * understandable
913
+ * contextual
914
+ * timely
915
+ * actionable
916
+
917
+ Avoid showing aggressive errors before the user has meaningfully interacted
918
+ with the field unless immediate validation is necessary.
919
+
920
+ ---
921
+
922
+ # 41. TEXT AREAS
923
+
924
+ Use multiline inputs when users need to provide:
925
+
926
+ * notes
927
+ * descriptions
928
+ * messages
929
+ * long-form content
930
+
931
+ The component should expand or scroll appropriately.
932
+
933
+ ---
934
+
935
+ # 42. STEPPERS
936
+
937
+ Steppers are appropriate when users adjust a value incrementally.
938
+
939
+ Example:
940
+
941
+ ```text
942
+ Quantity [-] 3 [+]
943
+ ```
944
+
945
+ Use them when the value has:
946
+
947
+ * clear increments
948
+ * understandable limits
949
+ * relatively small adjustment range
950
+
951
+ ---
952
+
953
+ # 43. SLIDERS
954
+
955
+ Sliders are useful for continuous or near-continuous values.
956
+
957
+ Examples:
958
+
959
+ ```text
960
+ Volume
961
+ Brightness
962
+ Playback position
963
+ Opacity
964
+ ```
965
+
966
+ Use a slider when approximate adjustment is acceptable.
967
+
968
+ ---
969
+
970
+ # 44. SLIDER VS STEPPER
971
+
972
+ Use:
973
+
974
+ ```text
975
+ Slider
976
+ ```
977
+
978
+ when users need fast movement through a range.
979
+
980
+ Use:
981
+
982
+ ```text
983
+ Stepper
984
+ ```
985
+
986
+ when users need precise incremental changes.
987
+
988
+ ---
989
+
990
+ # 45. PROGRESS INDICATORS
991
+
992
+ Progress communicates ongoing work.
993
+
994
+ Possible types:
995
+
996
+ ```text
997
+ indeterminate
998
+ determinate
999
+ buffered
1000
+ ```
1001
+
1002
+ Use determinate progress when the system knows meaningful progress.
1003
+
1004
+ Example:
1005
+
1006
+ ```text
1007
+ Downloading
1008
+ ████████░░ 80%
1009
+ ```
1010
+
1011
+ ---
1012
+
1013
+ # 46. LOADING INDICATORS
1014
+
1015
+ Loading indicators should communicate that work is happening.
1016
+
1017
+ Do not use them indefinitely.
1018
+
1019
+ If an operation takes significant time:
1020
+
1021
+ * provide progress where possible
1022
+ * explain what is happening
1023
+ * allow cancellation when appropriate
1024
+
1025
+ ---
1026
+
1027
+ # 47. SKELETONS
1028
+
1029
+ Skeleton loading can preserve layout structure.
1030
+
1031
+ Example:
1032
+
1033
+ ```text
1034
+ ████████████
1035
+ ██████
1036
+ ████████████████
1037
+ ```
1038
+
1039
+ This can be useful when content dimensions are predictable.
1040
+
1041
+ Do not use skeletons merely because they look sophisticated.
1042
+
1043
+ ---
1044
+
1045
+ # 48. LISTS
1046
+
1047
+ Lists are fundamental mobile components.
1048
+
1049
+ A list row may contain:
1050
+
1051
+ ```text
1052
+ leading visual
1053
+ primary text
1054
+ secondary text
1055
+ metadata
1056
+ trailing control
1057
+ ```
1058
+
1059
+ The agent should choose the minimum necessary structure.
1060
+
1061
+ ---
1062
+
1063
+ # 49. LIST ROW HIERARCHY
1064
+
1065
+ Typical:
1066
+
1067
+ ```text
1068
+ Primary
1069
+ Secondary
1070
+ Metadata
1071
+ ```
1072
+
1073
+ Example:
1074
+
1075
+ ```text
1076
+ Blinding Lights
1077
+ The Weeknd
1078
+ 4:21
1079
+ ```
1080
+
1081
+ The title should generally dominate.
1082
+
1083
+ ---
1084
+
1085
+ # 50. LIST DENSITY
1086
+
1087
+ List density should match the task.
1088
+
1089
+ Examples:
1090
+
1091
+ File manager:
1092
+
1093
+ ```text
1094
+ high density
1095
+ ```
1096
+
1097
+ Music library:
1098
+
1099
+ ```text
1100
+ moderate density
1101
+ ```
1102
+
1103
+ Reading app:
1104
+
1105
+ ```text
1106
+ lower density
1107
+ ```
1108
+
1109
+ Do not force one row height across all products.
1110
+
1111
+ ---
1112
+
1113
+ # 51. SWIPE ACTIONS
1114
+
1115
+ Swipe actions can expose contextual operations.
1116
+
1117
+ Examples:
1118
+
1119
+ ```text
1120
+ Delete
1121
+ Archive
1122
+ Mark read
1123
+ Favorite
1124
+ ```
1125
+
1126
+ They should supplement the interface rather than hide essential operations.
1127
+
1128
+ ---
1129
+
1130
+ # 52. LIST SELECTION
1131
+
1132
+ Selection state should be obvious.
1133
+
1134
+ Possible indicators:
1135
+
1136
+ ```text
1137
+ checkmark
1138
+ highlight
1139
+ checkbox
1140
+ selection toolbar
1141
+ ```
1142
+
1143
+ The agent should maintain consistency throughout the application.
1144
+
1145
+ ---
1146
+
1147
+ # 53. REORDERABLE LISTS
1148
+
1149
+ Reordering requires clear feedback.
1150
+
1151
+ The user should understand:
1152
+
1153
+ ```text
1154
+ what is moving
1155
+ where it will land
1156
+ that the operation is active
1157
+ ```
1158
+
1159
+ Motion can communicate this relationship.
1160
+
1161
+ ---
1162
+
1163
+ # 54. COLLECTIONS AND GRIDS
1164
+
1165
+ Use grids when visual recognition is more important than textual scanning.
1166
+
1167
+ Good examples:
1168
+
1169
+ ```text
1170
+ Albums
1171
+ Photos
1172
+ Themes
1173
+ Apps
1174
+ Files with thumbnails
1175
+ ```
1176
+
1177
+ Use lists when users primarily need:
1178
+
1179
+ ```text
1180
+ names
1181
+ metadata
1182
+ fast scanning
1183
+ ```
1184
+
1185
+ ---
1186
+
1187
+ # 55. GRID DENSITY
1188
+
1189
+ Grid size should respond to:
1190
+
1191
+ * available width
1192
+ * content aspect ratio
1193
+ * recognition needs
1194
+ * touch target requirements
1195
+
1196
+ Do not use tiny thumbnails simply to fit more items.
1197
+
1198
+ ---
1199
+
1200
+ # 56. CARDS
1201
+
1202
+ Cards are useful when content forms a distinct conceptual unit.
1203
+
1204
+ Examples:
1205
+
1206
+ ```text
1207
+ media recommendation
1208
+ article preview
1209
+ dashboard metric
1210
+ project summary
1211
+ ```
1212
+
1213
+ Cards should not automatically be used for every list item.
1214
+
1215
+ ---
1216
+
1217
+ # 57. CARD ANTI-PATTERN
1218
+
1219
+ Avoid:
1220
+
1221
+ ```text
1222
+ Card
1223
+ ↓
1224
+ Card
1225
+ ↓
1226
+ Card
1227
+ ↓
1228
+ Card
1229
+ ```
1230
+
1231
+ with every section independently enclosed.
1232
+
1233
+ This creates visual fragmentation.
1234
+
1235
+ ---
1236
+
1237
+ # 58. CARD CONTENT
1238
+
1239
+ A card should have:
1240
+
1241
+ ```text
1242
+ clear identity
1243
+ +
1244
+ clear hierarchy
1245
+ +
1246
+ clear action
1247
+ ```
1248
+
1249
+ Do not overload cards with unrelated controls.
1250
+
1251
+ ---
1252
+
1253
+ # 59. BADGES
1254
+
1255
+ Badges communicate compact status.
1256
+
1257
+ Examples:
1258
+
1259
+ ```text
1260
+ NEW
1261
+ PRO
1262
+ 3
1263
+ Offline
1264
+ Beta
1265
+ ```
1266
+
1267
+ Use badges sparingly.
1268
+
1269
+ If everything has a badge, badges stop communicating priority.
1270
+
1271
+ ---
1272
+
1273
+ # 60. CHIPS
1274
+
1275
+ Chips can represent:
1276
+
1277
+ * filters
1278
+ * categories
1279
+ * selections
1280
+ * compact actions
1281
+
1282
+ Example:
1283
+
1284
+ ```text
1285
+ [Rock] [Downloaded] [Favorites]
1286
+ ```
1287
+
1288
+ Do not use chips simply to decorate text.
1289
+
1290
+ ---
1291
+
1292
+ # 61. TABS
1293
+
1294
+ Tabs represent peer destinations or related views.
1295
+
1296
+ They should:
1297
+
1298
+ * remain recognizable
1299
+ * preserve state where appropriate
1300
+ * have concise labels
1301
+ * avoid excessive count
1302
+
1303
+ Tabs are navigation, not generic button rows.
1304
+
1305
+ ---
1306
+
1307
+ # 62. TAB STATE
1308
+
1309
+ The selected tab should be visually and semantically obvious.
1310
+
1311
+ The agent should consider:
1312
+
1313
+ ```text
1314
+ selected
1315
+ unselected
1316
+ disabled
1317
+ badge
1318
+ ```
1319
+
1320
+ where relevant.
1321
+
1322
+ ---
1323
+
1324
+ # 63. NAVIGATION BARS
1325
+
1326
+ Navigation bars establish location and context.
1327
+
1328
+ They may contain:
1329
+
1330
+ ```text
1331
+ back
1332
+ title
1333
+ leading action
1334
+ trailing action
1335
+ ```
1336
+
1337
+ Avoid overcrowding.
1338
+
1339
+ ---
1340
+
1341
+ # 64. NAVIGATION BAR TITLE
1342
+
1343
+ Title treatment should reflect hierarchy.
1344
+
1345
+ A screen title should not visually compete with primary content unless the
1346
+ design intentionally uses a large-title pattern.
1347
+
1348
+ ---
1349
+
1350
+ # 65. TOOLBARS
1351
+
1352
+ Toolbars expose actions relevant to the current context.
1353
+
1354
+ Prioritize:
1355
+
1356
+ ```text
1357
+ primary
1358
+ frequent
1359
+ contextual
1360
+ secondary
1361
+ ```
1362
+
1363
+ Move low-frequency actions into menus when appropriate.
1364
+
1365
+ ---
1366
+
1367
+ # 66. BOTTOM NAVIGATION
1368
+
1369
+ When using bottom navigation:
1370
+
1371
+ Use it for:
1372
+
1373
+ ```text
1374
+ major destinations
1375
+ ```
1376
+
1377
+ not:
1378
+
1379
+ ```text
1380
+ temporary actions
1381
+ ```
1382
+
1383
+ Each destination should justify persistent screen real estate.
1384
+
1385
+ ---
1386
+
1387
+ # 67. MEDIA CONTROLS
1388
+
1389
+ Media interfaces require fast access to:
1390
+
1391
+ ```text
1392
+ play/pause
1393
+ previous
1394
+ next
1395
+ seek
1396
+ volume
1397
+ queue
1398
+ ```
1399
+
1400
+ The exact controls depend on the media type.
1401
+
1402
+ Primary controls should not be buried.
1403
+
1404
+ ---
1405
+
1406
+ # 68. MEDIA PLAYER HIERARCHY
1407
+
1408
+ A typical music player hierarchy:
1409
+
1410
+ ```text
1411
+ Artwork
1412
+ ↓
1413
+ Track
1414
+ ↓
1415
+ Artist
1416
+ ↓
1417
+ Progress
1418
+ ↓
1419
+ Primary playback controls
1420
+ ↓
1421
+ Secondary controls
1422
+ ↓
1423
+ Queue
1424
+ ```
1425
+
1426
+ Do not allow decorative controls to dominate playback.
1427
+
1428
+ ---
1429
+
1430
+ # 69. PLAYER CONTROLS
1431
+
1432
+ Primary:
1433
+
1434
+ ```text
1435
+ Play/Pause
1436
+ ```
1437
+
1438
+ Secondary:
1439
+
1440
+ ```text
1441
+ Previous
1442
+ Next
1443
+ ```
1444
+
1445
+ Contextual:
1446
+
1447
+ ```text
1448
+ Repeat
1449
+ Shuffle
1450
+ Queue
1451
+ Lyrics
1452
+ Output
1453
+ ```
1454
+
1455
+ The hierarchy should reflect frequency and importance.
1456
+
1457
+ ---
1458
+
1459
+ # 70. SETTINGS ROWS
1460
+
1461
+ Settings interfaces often use list-based rows.
1462
+
1463
+ Typical:
1464
+
1465
+ ```text
1466
+ Setting name
1467
+ Description
1468
+ Trailing control
1469
+ ```
1470
+
1471
+ Example:
1472
+
1473
+ ```text
1474
+ Background Playback
1475
+ Continue playing after leaving the app
1476
+
1477
+ [ ON ]
1478
+ ```
1479
+
1480
+ ---
1481
+
1482
+ # 71. SETTINGS GROUPING
1483
+
1484
+ Group related settings.
1485
+
1486
+ Example:
1487
+
1488
+ ```text
1489
+ Playback
1490
+ ────────────
1491
+ Background Playback
1492
+ Crossfade
1493
+ Gapless Playback
1494
+
1495
+
1496
+ Appearance
1497
+ ────────────
1498
+ Theme
1499
+ Accent Color
1500
+ ```
1501
+
1502
+ Do not present every setting as an isolated screen.
1503
+
1504
+ ---
1505
+
1506
+ # 72. DISCLOSURE
1507
+
1508
+ A disclosure indicator communicates that more information or another screen
1509
+ exists.
1510
+
1511
+ Conceptually:
1512
+
1513
+ ```text
1514
+ Setting >
1515
+ ```
1516
+
1517
+ Use it when tapping the row navigates deeper.
1518
+
1519
+ Do not use a disclosure indicator for actions that happen immediately.
1520
+
1521
+ ---
1522
+
1523
+ # 73. CONTEXTUAL ROW ACTIONS
1524
+
1525
+ A list row can contain:
1526
+
1527
+ ```text
1528
+ tap
1529
+ swipe
1530
+ long press
1531
+ trailing control
1532
+ ```
1533
+
1534
+ Do not overload every row with all interaction types.
1535
+
1536
+ Choose the interaction that best matches the task.
1537
+
1538
+ ---
1539
+
1540
+ # 74. COMPONENT COMPOSITION
1541
+
1542
+ Complex interfaces should be composed from smaller semantic components.
1543
+
1544
+ Example:
1545
+
1546
+ ```text
1547
+ MusicPlayer
1548
+ ├── Artwork
1549
+ ├── TrackInfo
1550
+ ├── ProgressBar
1551
+ ├── PlaybackControls
1552
+ ├── SecondaryControls
1553
+ └── QueuePreview
1554
+ ```
1555
+
1556
+ This improves:
1557
+
1558
+ * consistency
1559
+ * testing
1560
+ * accessibility
1561
+ * reuse
1562
+ * maintainability
1563
+
1564
+ ---
1565
+
1566
+ # 75. COMPONENT BOUNDARIES
1567
+
1568
+ Create a component when a UI element has:
1569
+
1570
+ * repeated use
1571
+ * independent state
1572
+ * distinct behavior
1573
+ * meaningful semantic identity
1574
+
1575
+ Do not create a component solely because a `<View>` contains 10 lines.
1576
+
1577
+ ---
1578
+
1579
+ # 76. OVER-COMPONENTIZATION
1580
+
1581
+ Avoid:
1582
+
1583
+ ```text
1584
+ Screen
1585
+ └── HeaderWrapper
1586
+ └── HeaderContainer
1587
+ └── HeaderContent
1588
+ └── HeaderTextWrapper
1589
+ └── HeaderText
1590
+ ```
1591
+
1592
+ when there is no meaningful abstraction.
1593
+
1594
+ Componentization should improve reasoning, not create nesting for its own sake.
1595
+
1596
+ ---
1597
+
1598
+ # 77. DESIGN SYSTEM COMPONENTS
1599
+
1600
+ Reusable components should expose semantic properties.
1601
+
1602
+ Prefer:
1603
+
1604
+ ```tsx
1605
+ <Button
1606
+ variant="primary"
1607
+ loading={saving}
1608
+ disabled={!canSave}
1609
+ >
1610
+ Save
1611
+ </Button>
1612
+ ```
1613
+
1614
+ rather than repeated styling decisions.
1615
+
1616
+ ---
1617
+
1618
+ # 78. COMPONENT API DESIGN
1619
+
1620
+ A component API should describe intent.
1621
+
1622
+ Good:
1623
+
1624
+ ```tsx
1625
+ <Button variant="destructive">
1626
+ Delete
1627
+ </Button>
1628
+ ```
1629
+
1630
+ Less useful:
1631
+
1632
+ ```tsx
1633
+ <Button
1634
+ backgroundColor="#FF0000"
1635
+ borderRadius={12}
1636
+ paddingHorizontal={24}
1637
+ fontWeight="700"
1638
+ />
1639
+ ```
1640
+
1641
+ The second exposes implementation rather than design intent.
1642
+
1643
+ ---
1644
+
1645
+ # 79. COMPONENT VARIANTS
1646
+
1647
+ Variants should represent meaningful differences.
1648
+
1649
+ Examples:
1650
+
1651
+ ```text
1652
+ primary
1653
+ secondary
1654
+ destructive
1655
+ ghost
1656
+ compact
1657
+ large
1658
+ ```
1659
+
1660
+ Do not create dozens of variants for tiny visual differences.
1661
+
1662
+ ---
1663
+
1664
+ # 80. COMPONENT TOKENS
1665
+
1666
+ Components should consume shared tokens:
1667
+
1668
+ ```text
1669
+ color
1670
+ spacing
1671
+ typography
1672
+ shape
1673
+ motion
1674
+ elevation/material
1675
+ ```
1676
+
1677
+ This allows global refinement without rewriting every screen.
1678
+
1679
+ ---
1680
+
1681
+ # 81. COMPONENT ACCESSIBILITY
1682
+
1683
+ Every interactive component should expose semantic information.
1684
+
1685
+ Consider:
1686
+
1687
+ ```text
1688
+ role
1689
+ label
1690
+ value
1691
+ state
1692
+ hint
1693
+ disabled
1694
+ selected
1695
+ expanded
1696
+ ```
1697
+
1698
+ Visual appearance alone is not enough.
1699
+
1700
+ ---
1701
+
1702
+ # 82. COMPONENT FOCUS
1703
+
1704
+ Keyboard and accessibility focus must be considered where applicable.
1705
+
1706
+ Focus should:
1707
+
1708
+ * remain visible
1709
+ * move logically
1710
+ * not become trapped unexpectedly
1711
+ * preserve task context
1712
+
1713
+ ---
1714
+
1715
+ # 83. COMPONENT MOTION
1716
+
1717
+ Motion should communicate state.
1718
+
1719
+ Examples:
1720
+
1721
+ ```text
1722
+ button
1723
+ pressed
1724
+ ↓
1725
+ feedback
1726
+
1727
+ menu
1728
+ opened
1729
+ ↓
1730
+ revealed
1731
+
1732
+ row
1733
+ reordered
1734
+ ↓
1735
+ moved
1736
+ ```
1737
+
1738
+ Avoid animation that exists only because it looks impressive.
1739
+
1740
+ ---
1741
+
1742
+ # 84. COMPONENT FEEDBACK
1743
+
1744
+ Actions should produce understandable feedback.
1745
+
1746
+ Possible channels:
1747
+
1748
+ ```text
1749
+ visual
1750
+ haptic
1751
+ audio
1752
+ text
1753
+ state change
1754
+ ```
1755
+
1756
+ Choose the minimum effective feedback.
1757
+
1758
+ ---
1759
+
1760
+ # 85. COMPONENT ERROR STATES
1761
+
1762
+ Components should know what happens when something fails.
1763
+
1764
+ Example:
1765
+
1766
+ ```text
1767
+ Image
1768
+ ↓
1769
+ loading
1770
+ ↓
1771
+ error
1772
+ ↓
1773
+ fallback
1774
+ ```
1775
+
1776
+ Do not let failed content collapse the entire layout.
1777
+
1778
+ ---
1779
+
1780
+ # 86. COMPONENT EMPTY STATES
1781
+
1782
+ Components that may contain no data should define empty behavior.
1783
+
1784
+ Examples:
1785
+
1786
+ ```text
1787
+ Playlist
1788
+ ↓
1789
+ No songs
1790
+ ```
1791
+
1792
+ ```text
1793
+ Search
1794
+ ↓
1795
+ No results
1796
+ ```
1797
+
1798
+ ```text
1799
+ Image
1800
+ ↓
1801
+ Unavailable
1802
+ ```
1803
+
1804
+ ---
1805
+
1806
+ # 87. COMPONENT LOADING STATES
1807
+
1808
+ Prefer localized loading where possible.
1809
+
1810
+ Bad:
1811
+
1812
+ ```text
1813
+ entire application
1814
+ ↓
1815
+ spinner
1816
+ ```
1817
+
1818
+ Better:
1819
+
1820
+ ```text
1821
+ playlist
1822
+ ↓
1823
+ loading placeholder
1824
+
1825
+ rest of interface
1826
+ ↓
1827
+ still usable
1828
+ ```
1829
+
1830
+ ---
1831
+
1832
+ # 88. COMPONENT RESPONSIVENESS
1833
+
1834
+ A component should define how it behaves when space changes.
1835
+
1836
+ Examples:
1837
+
1838
+ ```text
1839
+ wide
1840
+ ↓
1841
+ icon + label
1842
+
1843
+ compact
1844
+ ↓
1845
+ icon only
1846
+ ```
1847
+
1848
+ or:
1849
+
1850
+ ```text
1851
+ wide
1852
+ ↓
1853
+ horizontal
1854
+
1855
+ compact
1856
+ ↓
1857
+ vertical
1858
+ ```
1859
+
1860
+ ---
1861
+
1862
+ # 89. COMPONENT CONTENT FLEXIBILITY
1863
+
1864
+ Components should not assume ideal content.
1865
+
1866
+ Test with:
1867
+
1868
+ ```text
1869
+ short text
1870
+ long text
1871
+ missing text
1872
+ large numbers
1873
+ localization
1874
+ large accessibility text
1875
+ ```
1876
+
1877
+ ---
1878
+
1879
+ # 90. COMPONENT PERFORMANCE
1880
+
1881
+ Avoid components that unnecessarily trigger:
1882
+
1883
+ * expensive re-renders
1884
+ * heavy layout calculations
1885
+ * huge image decoding
1886
+ * unnecessary animations
1887
+ * excessive blur
1888
+ * large shadow trees
1889
+
1890
+ Visual quality includes runtime performance.
1891
+
1892
+ ---
1893
+
1894
+ # 91. COMPONENT REUSE RULE
1895
+
1896
+ Reuse a component when:
1897
+
1898
+ ```text
1899
+ same meaning
1900
+ +
1901
+ same behavior
1902
+ +
1903
+ similar structure
1904
+ ```
1905
+
1906
+ Do not reuse merely because:
1907
+
1908
+ ```text
1909
+ looks similar
1910
+ ```
1911
+
1912
+ Two visually similar components may represent different semantics.
1913
+
1914
+ ---
1915
+
1916
+ # 92. CUSTOM COMPONENT RULE
1917
+
1918
+ Before creating a custom component, ask:
1919
+
1920
+ ```text
1921
+ Does a native pattern already solve this?
1922
+ ↓
1923
+ Does an existing design-system component solve it?
1924
+ ↓
1925
+ Can an existing component be extended?
1926
+ ↓
1927
+ Is the custom interaction actually necessary?
1928
+ ```
1929
+
1930
+ Only then create a new pattern.
1931
+
1932
+ ---
1933
+
1934
+ # 93. PLATFORM ADAPTATION
1935
+
1936
+ A shared cross-platform component may need different implementations.
1937
+
1938
+ Example:
1939
+
1940
+ ```text
1941
+ Button
1942
+ ↓
1943
+ shared semantic API
1944
+ ↓
1945
+ iOS implementation
1946
+ ↓
1947
+ Android implementation
1948
+ ```
1949
+
1950
+ The API can remain consistent while interaction behavior adapts.
1951
+
1952
+ ---
1953
+
1954
+ # 94. DO NOT FORCE CROSS-PLATFORM IDENTICALITY
1955
+
1956
+ A good cross-platform design system does not mean:
1957
+
1958
+ ```text
1959
+ iOS == Android
1960
+ ```
1961
+
1962
+ It means:
1963
+
1964
+ ```text
1965
+ same product intent
1966
+ +
1967
+ platform-appropriate expression
1968
+ ```
1969
+
1970
+ ---
1971
+
1972
+ # 95. COMPONENT DECISION TREE
1973
+
1974
+ When designing a UI element:
1975
+
1976
+ ```text
1977
+ What does it do?
1978
+ ↓
1979
+ Is the behavior standard?
1980
+ ↓
1981
+ YES ─────────→ use platform pattern
1982
+ │
1983
+ NO
1984
+ ↓
1985
+ Is there an existing project component?
1986
+ ↓
1987
+ YES ─────────→ reuse/adapt
1988
+ │
1989
+ NO
1990
+ ↓
1991
+ Can the interaction be simplified?
1992
+ ↓
1993
+ YES ─────────→ simplify
1994
+ │
1995
+ NO
1996
+ ↓
1997
+ Create reusable custom component
1998
+ ```
1999
+
2000
+ ---
2001
+
2002
+ # 96. COMPONENT REVIEW
2003
+
2004
+ Review each component for:
2005
+
2006
+ ```text
2007
+ Purpose
2008
+ Hierarchy
2009
+ States
2010
+ Touch target
2011
+ Accessibility
2012
+ Feedback
2013
+ Responsiveness
2014
+ Localization
2015
+ Dynamic Type
2016
+ Error handling
2017
+ Loading
2018
+ Performance
2019
+ Platform fit
2020
+ ```
2021
+
2022
+ ---
2023
+
2024
+ # 97. SCREEN COMPOSITION TEST
2025
+
2026
+ A screen should not feel like:
2027
+
2028
+ ```text
2029
+ component
2030
+ component
2031
+ component
2032
+ component
2033
+ component
2034
+ ```
2035
+
2036
+ It should feel like:
2037
+
2038
+ ```text
2039
+ one coherent experience
2040
+ ```
2041
+
2042
+ Components are implementation units.
2043
+
2044
+ The user experiences the composition.
2045
+
2046
+ ---
2047
+
2048
+ # 98. COMPONENT VISUAL CONSISTENCY
2049
+
2050
+ Across the application, related components should share:
2051
+
2052
+ ```text
2053
+ shape language
2054
+ spacing
2055
+ typography
2056
+ interaction feedback
2057
+ iconography
2058
+ color semantics
2059
+ ```
2060
+
2061
+ Inconsistency is one of the fastest ways to make an application feel
2062
+ unfinished.
2063
+
2064
+ ---
2065
+
2066
+ # 99. COMPONENT QUALITY TEST
2067
+
2068
+ Ask:
2069
+
2070
+ > If this component were moved to another screen, would it still make
2071
+ > semantic sense?
2072
+
2073
+ If yes:
2074
+
2075
+ The component boundary is probably strong.
2076
+
2077
+ If no:
2078
+
2079
+ It may be too tightly coupled to the current screen.
2080
+
2081
+ ---
2082
+
2083
+ # 100. PREMIUM COMPONENT TEST
2084
+
2085
+ A premium component should feel:
2086
+
2087
+ ```text
2088
+ predictable
2089
+ responsive
2090
+ quiet
2091
+ precise
2092
+ consistent
2093
+ accessible
2094
+ ```
2095
+
2096
+ not:
2097
+
2098
+ ```text
2099
+ overanimated
2100
+ overdecorated
2101
+ overrounded
2102
+ overfilled
2103
+ ```
2104
+
2105
+ ---
2106
+
2107
+ # 101. FINAL COMPONENT PRINCIPLE
2108
+
2109
+ Do not build UI from visual fragments.
2110
+
2111
+ Build it from interaction concepts.
2112
+
2113
+ Think:
2114
+
2115
+ ```text
2116
+ Action
2117
+ Selection
2118
+ Navigation
2119
+ Input
2120
+ Feedback
2121
+ Content
2122
+ Status
2123
+ Grouping
2124
+ ```
2125
+
2126
+ Then express those concepts through platform-appropriate components.
2127
+
2128
+ ---
2129
+
2130
+ # 102. QUICK REFERENCE
2131
+
2132
+ ```text
2133
+ USER INTENT
2134
+ ↓
2135
+ INTERACTION
2136
+ ↓
2137
+ NATIVE PATTERN
2138
+ ↓
2139
+ COMPONENT
2140
+ ↓
2141
+ STATE
2142
+ ↓
2143
+ ACCESSIBILITY
2144
+ ↓
2145
+ RESPONSIVENESS
2146
+ ↓
2147
+ VISUAL IDENTITY
2148
+ ↓
2149
+ VALIDATION
2150
+ ```
2151
+
2152
+ ---
2153
+
2154
+ # 103. SOURCE
2155
+
2156
+ Apple Human Interface Guidelines:
2157
+
2158
+ [https://developer.apple.com/design/human-interface-guidelines/](https://developer.apple.com/design/human-interface-guidelines/)
2159
+
2160
+ Apple — Components:
2161
+
2162
+ [https://developer.apple.com/design/human-interface-guidelines/components](https://developer.apple.com/design/human-interface-guidelines/components)
2163
+
2164
+ Apple Developer Documentation:
2165
+
2166
+ [https://developer.apple.com/documentation/](https://developer.apple.com/documentation/)
2167
+
2168
+ Apple Accessibility:
2169
+
2170
+ [https://developer.apple.com/accessibility/](https://developer.apple.com/accessibility/)
2171
+
2172
+ ````