[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEBVF4MH2V24N5BP8D5WV7":3,"skill-same:01M6FEBVF4MH2V24N5BP8D5WV7":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6FEBVF4MH2V24N5BP8D5WV7","ios-animations",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-animations\u002FSKILL.md",[],[18,19],"ios","ios animations","2026-11-10 10:12:30",false,"# dot-skills — Airbnb iOS SwiftUI Animations Best Practices\n\nOpinionated, strict animation craft guide for SwiftUI iOS 26 \u002F Swift 6.2 apps. Contains 50 rules across 8 categories, prioritized by impact. Derived from Airbnb Engineering motion patterns, Apple WWDC sessions, and Apple Human Interface Guidelines. Mandates @Equatable on every animated view, motion tokens for all spring\u002Ftiming values, and design system tokens for layout.\n\n## Mandated Architecture Alignment\n\nThis skill is designed to work alongside `swift-ui-architect` and `ios-design-system`. All code examples follow the same non-negotiable constraints:\n\n- `@Equatable` macro on every view (Airbnb measured 15% scroll hitch reduction)\n- `@Observable` for complex animation state that involves business logic triggers\n- `@State` for view-owned animation state (toggle booleans, drag offsets)\n- Design system tokens: `Spacing.xs\u002Fsm\u002Fmd\u002Flg`, `Radius.sm\u002Fmd\u002Flg` — zero hardcoded layout numbers\n- Motion tokens: `Motion.standard\u002Fresponsive\u002Fplayful` — zero scattered spring literals\n- Semantic colors: `.backgroundSurface`, `.accentPrimary` — no raw Color literals in views\n- Feature animations remain presentation-only; data\u002Fnetwork concerns stay in Data package\n\n## Scope & Relationship to Sibling Skills\n\nThis skill is the **motion layer** — it teaches how to BUILD fluid, performant animations. When loaded alongside sibling skills:\n\n| Sibling Skill | Its Focus | This Skill's Focus |\n|---------------|-----------|-------------------|\n| `swift-ui-architect` | **Architecture** (modular MVVM-C, route shells, protocol boundaries) | **Animation architecture** (motion tokens, spring selection, orchestration) |\n| `ios-design-system` | **Design system infrastructure** (tokens, styles, governance) | **Motion tokens and animated component patterns** |\n| `ios-hig` | **HIG compliance** patterns | **Motion-specific HIG** (reduce motion, spatial continuity) |\n\n**Out of scope:** Designer-authored vector animations (use [Lottie](https:\u002F\u002Fgithub.com\u002Fairbnb\u002Flottie-ios) for After Effects exports). Complex UIKit transition controllers (see Airbnb's [declarative transition framework](https:\u002F\u002Fmedium.com\u002Fairbnb-engineering\u002Fmotion-engineering-at-scale-5ffabfc878)). This skill covers programmatic SwiftUI animations only.\n\n\n## Clinic Architecture Contract (iOS 26 \u002F Swift 6.2)\n\nAll guidance in this skill assumes the clinic modular MVVM-C architecture:\n\n- Feature modules import `Domain` + `DesignSystem` only (never `Data`, never sibling features)\n- App target is the convergence point and owns `DependencyContainer`, concrete coordinators, and Route Shell wiring\n- `Domain` stays pure Swift and defines models plus repository, `*Coordinating`, `ErrorRouting`, and `AppError` contracts\n- `Data` owns SwiftData\u002Fnetwork\u002Fsync\u002Fretry\u002Fbackground I\u002FO and implements Domain protocols\n- Read\u002Fwrite flow defaults to stale-while-revalidate reads and optimistic queued writes\n- ViewModels call repository protocols directly (no default use-case\u002Finteractor layer)\n\n## When to Apply\n\nReference these guidelines when:\n- Adding animations to SwiftUI views or transitions\n- Building gesture-driven interactions (drag, swipe, pan)\n- Connecting views with spatial transitions (expand\u002Fcollapse, navigation morphs)\n- Designing micro-interactions (button press, toggle, loading states)\n- Making content changes feel physical (number rolls, symbol replacements)\n- Choreographing multi-element animation sequences (KeyframeAnimator, PhaseAnimator)\n- Defining motion tokens for a design system\n- Reviewing animation code for performance, accessibility, and architecture compliance\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix | Rules |\n|----------|----------|--------|--------|-------|\n| 1 | Spring Physics | CRITICAL | `spring-` | 8 |\n| 2 | Timing & Feel | CRITICAL | `feel-` | 6 |\n| 3 | Gesture Continuity | HIGH | `gesture-` | 7 |\n| 4 | Spatial Transitions | HIGH | `spatial-` | 6 |\n| 5 | Micro-interactions | HIGH | `micro-` | 6 |\n| 6 | Orchestration | HIGH | `orch-` | 5 |\n| 7 | Craft & Polish | HIGH | `craft-` | 5 |\n| 8 | Content Motion | MEDIUM-HIGH | `content-` | 5 |\n\n## Quick Reference\n\n### 1. Spring Physics (CRITICAL)\n\n- [`spring-motion-tokens`](references\u002Fspring-motion-tokens.md) — Define motion tokens as a caseless enum for all spring presets\n- [`spring-smooth-default`](references\u002Fspring-smooth-default.md) — Default to .smooth spring for all UI transitions\n- [`spring-snappy-responsive`](references\u002Fspring-snappy-responsive.md) — Use .snappy spring for responsive interactions\n- [`spring-bouncy-celebration`](references\u002Fspring-bouncy-celebration.md) — Use .bouncy spring for playful and celebratory moments\n- [`spring-custom-parameters`](references\u002Fspring-custom-parameters.md) — Tune custom springs with response and dampingFraction\n- [`spring-velocity-preservation`](references\u002Fspring-velocity-preservation.md) — Springs preserve velocity on interruption\n- [`spring-never-linear`](references\u002Fspring-never-linear.md) — Never use linear or easeInOut for interactive UI\n- [`spring-completion-chaining`](references\u002Fspring-completion-chaining.md) — Use withAnimation completion for chained sequences\n\n### 2. Timing & Feel (CRITICAL)\n\n- [`feel-250ms-max`](references\u002Ffeel-250ms-max.md) — Keep UI animations under 250ms\n- [`feel-faster-better`](references\u002Ffeel-faster-better.md) — Faster animations almost always feel better\n- [`feel-asymmetric-enter-exit`](references\u002Ffeel-asymmetric-enter-exit.md) — Use asymmetric timing for enter and exit\n- [`feel-distance-proportional`](references\u002Ffeel-distance-proportional.md) — Match duration to distance traveled\n- [`feel-haptic-sync`](references\u002Ffeel-haptic-sync.md) — Sync haptic feedback to visual animation keyframes\n- [`feel-stagger-timing`](references\u002Ffeel-stagger-timing.md) — Stagger reveals at 30-50ms intervals\n\n### 3. Gesture Continuity (HIGH)\n\n- [`gesture-rubber-band`](references\u002Fgesture-rubber-band.md) — Rubber band at drag boundaries\n- [`gesture-momentum-dismiss`](references\u002Fgesture-momentum-dismiss.md) — Dismiss on velocity OR distance threshold\n- [`gesture-snap-points`](references\u002Fgesture-snap-points.md) — Use velocity-aware snap points\n- [`gesture-interruptible`](references\u002Fgesture-interruptible.md) — Make all gesture animations interruptible\n- [`gesture-scroll-drag-conflict`](references\u002Fgesture-scroll-drag-conflict.md) — Resolve scroll and drag gesture conflicts\n- [`gesture-state-transient`](references\u002Fgesture-state-transient.md) — Use GestureState for transient drag state\n- [`gesture-projected-landing`](references\u002Fgesture-projected-landing.md) — Project gesture velocity for natural landing position\n\n### 4. Spatial Transitions (HIGH)\n\n- [`spatial-matched-geometry`](references\u002Fspatial-matched-geometry.md) — Use matchedGeometryEffect for expand\u002Fcollapse morphs\n- [`spatial-zoom-navigation`](references\u002Fspatial-zoom-navigation.md) — Use zoom navigation transition for collection detail (iOS 18)\n- [`spatial-transition-origin`](references\u002Fspatial-transition-origin.md) — Anchor transitions to their trigger location\n- [`spatial-hero-shared-element`](references\u002Fspatial-hero-shared-element.md) — Share multiple element IDs for rich hero animations\n- [`spatial-sheet-morph`](references\u002Fspatial-sheet-morph.md) — Use matchedGeometryEffect for sheet presentations\n- [`spatial-tab-continuity`](references\u002Fspatial-tab-continuity.md) — Maintain spatial direction in tab transitions\n\n### 5. Micro-interactions (HIGH)\n\n- [`micro-button-press-scale`](references\u002Fmicro-button-press-scale.md) — Scale buttons to 0.97 on press for tactile feedback\n- [`micro-haptic-pairing`](references\u002Fmicro-haptic-pairing.md) — Pair every visual state change with haptic feedback\n- [`micro-symbol-effect`](references\u002Fmicro-symbol-effect.md) — Use symbolEffect for SF Symbol animations\n- [`micro-toggle-bounce`](references\u002Fmicro-toggle-bounce.md) — Add bounce to toggle state changes\n- [`micro-long-press-fill`](references\u002Fmicro-long-press-fill.md) — Animate progressive fill for long press actions\n- [`micro-loading-phase`](references\u002Fmicro-loading-phase.md) — Use repeating spring for organic loading states\n\n### 6. Orchestration (HIGH)\n\n- [`orch-phase-animator`](references\u002Forch-phase-animator.md) — Use PhaseAnimator for multi-step sequences\n- [`orch-keyframe-animator`](references\u002Forch-keyframe-animator.md) — Use KeyframeAnimator for timeline-precise motion\n- [`orch-stagger-children`](references\u002Forch-stagger-children.md) — Stagger child elements for orchestrated reveals\n- [`orch-coordinated-entrance`](references\u002Forch-coordinated-entrance.md) — Coordinate multi-element entrances with shared trigger\n- [`orch-timeline-view`](references\u002Forch-timeline-view.md) — Use TimelineView for continuous repeating animations\n\n### 7. Craft & Polish (HIGH)\n\n- [`craft-reduce-motion`](references\u002Fcraft-reduce-motion.md) — Respect accessibilityReduceMotion with crossfade fallback\n- [`craft-blur-bridge`](references\u002Fcraft-blur-bridge.md) — Use blur to bridge imperfect transition states\n- [`craft-drawing-group`](references\u002Fcraft-drawing-group.md) — Use drawingGroup() for Metal-backed complex animations\n- [`craft-geometry-group`](references\u002Fcraft-geometry-group.md) — Use geometryGroup() to isolate layout animation propagation\n- [`craft-transaction-debug`](references\u002Fcraft-transaction-debug.md) — Use Transaction to debug and override animation behavior\n\n### 8. Content Motion (MEDIUM-HIGH)\n\n- [`content-numeric-text`](references\u002Fcontent-numeric-text.md) — Use contentTransition(.numericText) for number changes\n- [`content-scroll-transition`](references\u002Fcontent-scroll-transition.md) — Use scrollTransition for scroll-position effects\n- [`content-visual-effect`](references\u002Fcontent-visual-effect.md) — Use visualEffect for position-aware animations\n- [`content-symbol-replace`](references\u002Fcontent-symbol-replace.md) — Animate symbol replacement with contentTransition\n- [`content-text-renderer`](references\u002Fcontent-text-renderer.md) — Use Text Renderer for character-level animation (iOS 18)\n\n## How to Use\n\nRead individual reference files for detailed explanations with incorrect\u002Fcorrect code examples:\n\n- [Section definitions](references\u002F_sections.md) — Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) — Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fios-animations",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ios-animations",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ios-animations",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ios-animations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-animations\u002FSKILL.md",true,[],[48,57,66,75,81,87],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[54,55,56],"model","model hierarchy","model hierarchy skill",{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[63,64,65],"MCP","zoom","zoom mcp",{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[72,73,74,64],"sdk","zoom apps sdk","apps",{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[77],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[89]]