MCPInstall

ios-animations

Clinic-architecture-aligned iOS animation craft guidelines for SwiftUI (iOS 26 / Swift 6.2) covering motion tokens, spring physics, gesture continuity, spatial transitions, micro-interactions, and accessibility. Enforces @Equatable on animated views and keeps animation state aligned with Domain/Data feature boundaries. Use when writing, reviewing, or refactoring SwiftUI animation code under the clinic modular MVVM-C architecture.

Installs
344
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/pproenca/dot-skills --skill ios-animations
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads ios-animations automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

dot-skills — Airbnb iOS SwiftUI Animations Best Practices

Opinionated, strict animation craft guide for SwiftUI iOS 26 / 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/timing values, and design system tokens for layout.

Mandated Architecture Alignment

This skill is designed to work alongside swift-ui-architect and ios-design-system. All code examples follow the same non-negotiable constraints:

  • @Equatable macro on every view (Airbnb measured 15% scroll hitch reduction)
  • @Observable for complex animation state that involves business logic triggers
  • @State for view-owned animation state (toggle booleans, drag offsets)
  • Design system tokens: Spacing.xs/sm/md/lg, Radius.sm/md/lg — zero hardcoded layout numbers
  • Motion tokens: Motion.standard/responsive/playful — zero scattered spring literals
  • Semantic colors: .backgroundSurface, .accentPrimary — no raw Color literals in views
  • Feature animations remain presentation-only; data/network concerns stay in Data package

Scope & Relationship to Sibling Skills

This skill is the motion layer — it teaches how to BUILD fluid, performant animations. When loaded alongside sibling skills:

Sibling SkillIts FocusThis Skill's Focus
swift-ui-architectArchitecture (modular MVVM-C, route shells, protocol boundaries)Animation architecture (motion tokens, spring selection, orchestration)
ios-design-systemDesign system infrastructure (tokens, styles, governance)Motion tokens and animated component patterns
ios-higHIG compliance patternsMotion-specific HIG (reduce motion, spatial continuity)

Out of scope: Designer-authored vector animations (use Lottie for After Effects exports). Complex UIKit transition controllers (see Airbnb's declarative transition framework). This skill covers programmatic SwiftUI animations only.

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

  • Feature modules import Domain + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
  • ViewModels call repository protocols directly (no default use-case/interactor layer)

When to Apply

Reference these guidelines when:

  • Adding animations to SwiftUI views or transitions
  • Building gesture-driven interactions (drag, swipe, pan)
  • Connecting views with spatial transitions (expand/collapse, navigation morphs)
  • Designing micro-interactions (button press, toggle, loading states)
  • Making content changes feel physical (number rolls, symbol replacements)
  • Choreographing multi-element animation sequences (KeyframeAnimator, PhaseAnimator)
  • Defining motion tokens for a design system
  • Reviewing animation code for performance, accessibility, and architecture compliance

Rule Categories by Priority

PriorityCategoryImpactPrefixRules
1Spring PhysicsCRITICALspring-8
2Timing & FeelCRITICALfeel-6
3Gesture ContinuityHIGHgesture-7
4Spatial TransitionsHIGHspatial-6
5Micro-interactionsHIGHmicro-6
6OrchestrationHIGHorch-5
7Craft & PolishHIGHcraft-5
8Content MotionMEDIUM-HIGHcontent-5

Quick Reference

1. Spring Physics (CRITICAL)

  • spring-motion-tokens — Define motion tokens as a caseless enum for all spring presets
  • spring-smooth-default — Default to .smooth spring for all UI transitions
  • spring-snappy-responsive — Use .snappy spring for responsive interactions
  • spring-bouncy-celebration — Use .bouncy spring for playful and celebratory moments
  • spring-custom-parameters — Tune custom springs with response and dampingFraction
  • spring-velocity-preservation — Springs preserve velocity on interruption
  • spring-never-linear — Never use linear or easeInOut for interactive UI
  • spring-completion-chaining — Use withAnimation completion for chained sequences

2. Timing & Feel (CRITICAL)

  • feel-250ms-max — Keep UI animations under 250ms
  • feel-faster-better — Faster animations almost always feel better
  • feel-asymmetric-enter-exit — Use asymmetric timing for enter and exit
  • feel-distance-proportional — Match duration to distance traveled
  • feel-haptic-sync — Sync haptic feedback to visual animation keyframes
  • feel-stagger-timing — Stagger reveals at 30-50ms intervals

3. Gesture Continuity (HIGH)

  • gesture-rubber-band — Rubber band at drag boundaries
  • gesture-momentum-dismiss — Dismiss on velocity OR distance threshold
  • gesture-snap-points — Use velocity-aware snap points
  • gesture-interruptible — Make all gesture animations interruptible
  • gesture-scroll-drag-conflict — Resolve scroll and drag gesture conflicts
  • gesture-state-transient — Use GestureState for transient drag state
  • gesture-projected-landing — Project gesture velocity for natural landing position

4. Spatial Transitions (HIGH)

  • spatial-matched-geometry — Use matchedGeometryEffect for expand/collapse morphs
  • spatial-zoom-navigation — Use zoom navigation transition for collection detail (iOS 18)
  • spatial-transition-origin — Anchor transitions to their trigger location
  • spatial-hero-shared-element — Share multiple element IDs for rich hero animations
  • spatial-sheet-morph — Use matchedGeometryEffect for sheet presentations
  • spatial-tab-continuity — Maintain spatial direction in tab transitions

5. Micro-interactions (HIGH)

  • micro-button-press-scale — Scale buttons to 0.97 on press for tactile feedback
  • micro-haptic-pairing — Pair every visual state change with haptic feedback
  • micro-symbol-effect — Use symbolEffect for SF Symbol animations
  • micro-toggle-bounce — Add bounce to toggle state changes
  • micro-long-press-fill — Animate progressive fill for long press actions
  • micro-loading-phase — Use repeating spring for organic loading states

6. Orchestration (HIGH)

  • orch-phase-animator — Use PhaseAnimator for multi-step sequences
  • orch-keyframe-animator — Use KeyframeAnimator for timeline-precise motion
  • orch-stagger-children — Stagger child elements for orchestrated reveals
  • orch-coordinated-entrance — Coordinate multi-element entrances with shared trigger
  • orch-timeline-view — Use TimelineView for continuous repeating animations

7. Craft & Polish (HIGH)

  • craft-reduce-motion — Respect accessibilityReduceMotion with crossfade fallback
  • craft-blur-bridge — Use blur to bridge imperfect transition states
  • craft-drawing-group — Use drawingGroup() for Metal-backed complex animations
  • craft-geometry-group — Use geometryGroup() to isolate layout animation propagation
  • craft-transaction-debug — Use Transaction to debug and override animation behavior

8. Content Motion (MEDIUM-HIGH)

  • content-numeric-text — Use contentTransition(.numericText) for number changes
  • content-scroll-transition — Use scrollTransition for scroll-position effects
  • content-visual-effect — Use visualEffect for position-aware animations
  • content-symbol-replace — Animate symbol replacement with contentTransition
  • content-text-renderer — Use Text Renderer for character-level animation (iOS 18)

How to Use

Read individual reference files for detailed explanations with incorrect/correct code examples:

  • Section definitions — Category structure and impact levels
  • Rule template — Template for adding new rules

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

FAQ

What does the ios-animations skill do?

Clinic-architecture-aligned iOS animation craft guidelines for SwiftUI (iOS 26 / Swift 6.2) covering motion tokens, spring physics, gesture continuity, spatial transitions, micro-interactions, and accessibility. Enforces @Equatable on animated views and keeps animation state aligned with Domain/Data feature boundaries. Use when writing, reviewing, or refactoring SwiftUI animation code under the clinic modular MVVM-C architecture.

How do I install ios-animations?

Run npx skills add https://github.com/pproenca/dot-skills --skill ios-animations in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ios-animations/ (personal) or .claude/skills/ios-animations/ (project).

Which AI agents can use ios-animations?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is ios-animations safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains ios-animations?

It is published by pproenca in pproenca/dot-skills. It has 344 recorded installs.

More from pproenca/dot-skills

View all →

zod

pproenca/dot-skills

Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover React Hook Form integration patterns (use react-hook-form skill) or OpenAPI client generation (use orval skill).

Frontend & Design7.1K installs

vitest

pproenca/dot-skills

Vitest testing framework patterns for test setup, async testing, mocking with vi., snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs.

Testing & QA6.2K installs

react-hook-form

pproenca/dot-skills

React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, the subscribe() API, and the Watch / FormStateSubscribe / FieldArray render-prop components. Covers RHF 7.82 additions including resetDefaultValues() and the disabled field-array option. This skill should be used when building client-side controlled forms with React Hook Form library. This skill does NOT cover React 19 Server Actions, useActionState, or server-side form handling (use react-19 skill for those).

emilkowal-animations

pproenca/dot-skills

Emil Kowalski's animation best practices for web interfaces. Use when writing, reviewing, or implementing animations in React, CSS, or Framer Motion. Triggers on tasks involving transitions, easing, gestures, toasts, drawers, or motion.

Frontend & Design2.8K installs

nuqs

pproenca/dot-skills

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks involving useQueryState, useQueryStates, search params, URL state, query parameters, nuqs parsers, limitUrlUpdates, Standard Schema, NuqsAdapter, or Next.js routing with state.

Frontend & Design2.3K installs

clean-architecture

pproenca/dot-skills

Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code structure, or refactoring applications to achieve better separation of concerns. Triggers on tasks involving layers, boundaries, dependency direction, entities, use cases, or system architecture.

Popular mobile skills

View category →

design-mobile-apps

designed-by-ai/skills

Design mobile app screens with Sleek, edit Sleek projects, and implement their designs in React Native or HTML.

Mobile1.1M installs

ios-design

uizze.sh

Design and review iOS UI/UX for iPhone apps in SwiftUI, UIKit, or React Native. Use for mobile app design, screen redesigns, navigation flows, typography, forms, keyboard and safe-area layout, and accessibility checks. Apply Apple Human Interface Guidelines and consult real product references through the optional Uizze connection.

Mobile416.5K installs

vercel-react-native-skills

vercel-labs/agent-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

OfficialMobile256.7K installs

animate-expo

emilkowalski/skills

Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For web animation use animate.

Mobile140.1K installs

xcode-project-setup

firebase/agent-skills

Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).

OfficialMobile131.2K installs

firebase-remote-config-basics

firebase/agent-skills

Manages Firebase Remote Config templates, feature flags, loading strategies, and SDKs (Android, iOS). Use when downloading/deploying remoteconfig JSON templates, managing version history/feature flags, setting in-app defaults, fetchAndActivate(), real-time listeners, or SDK setup. Don't use for Firebase Hosting, Auth, Firestore, Data Connect, Crashlytics, or App Hosting.

OfficialMobile121.7K installs