Skip to content
Skills Library
Programming · Building & coding

swiftui-animation-workflow

/swiftui-animation-workflow

Guide SwiftUI animation design, implementation, repair, and validation across withAnimation, animation(_:value:), transactions, transitions, content transitions, matchedGeometryEffect, navigation transitions, PhaseAnimator, KeyframeAnimator, TimelineView, symbol effects, reduce-motion behavior, previews, and performance-aware handoffs. Use when a task mentions SwiftUI animation, motion, transition design, animated state changes, hero transitions, phase or keyframe animation, symbolEffect in SwiftUI, reduce motion, or repairing confusing or over-broad animation behavior.

Repository
socket ↗
Licence
Apache-2.0
Last repository change
26.08.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.08.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Guide SwiftUI animation design, implementation, repair, and validation across withAnimation, animation(_:value:), transactions, transitions, content transitions, matchedGeometryEffect, navigation transitions, PhaseAnimator, KeyframeAnimator, TimelineView, symbol effects, reduce-motion behavior, previews, and performance-aware handoffs. Use when a task mentions SwiftUI animation, motion, transition design, animated state changes, hero transitions, phase or keyframe animation, symbolEffect in SwiftUI, reduce motion, or repairing confusing or over-broad animation behavior.

Original author description

Guide SwiftUI animation design, implementation, repair, and validation across withAnimation, animation(_:value:), transactions, transitions, content transitions, matchedGeometryEffect, navigation transitions, PhaseAnimator, KeyframeAnimator, TimelineView, symbol effects, reduce-motion behavior, previews, and performance-aware handoffs. Use when a task mentions SwiftUI animation, motion, transition design, animated state changes, hero transitions, phase or keyframe animation, symbolEffect in SwiftUI, reduce motion, or repairing confusing or over-broad animation behavior.

How it works

  1. Purpose
  2. When To Use
  3. Single-Path Workflow
  4. Inputs
  5. Outputs
  6. Guards and Stop Conditions
  7. Fallbacks and Handoffs
  8. Fixed Policy
  9. References
Original SKILL.md headings · 137 lines, 1,091 words
SKILL.md preview
---
name: swiftui-animation-workflow
description: Guide SwiftUI animation design, implementation, repair, and validation across withAnimation, animation(_:value:), transactions, transitions, content transitions, matchedGeometryEffect, navigation transitions, PhaseAnimator, KeyframeAnimator, TimelineView, symbol effects, reduce-motion behavior, previews, and performance-aware handoffs. Use when a task mentions SwiftUI animation, motion, transition design, animated state changes, hero transitions, phase or keyframe animation, symbolEffect in SwiftUI, reduce motion, or repairing confusing or over-broad animation behavior.
---

# SwiftUI Animation Workflow

## Purpose

Use this skill to design, implement, repair, and validate SwiftUI motion that stays state-driven, accessible, and grounded in Apple documentation. The skill owns SwiftUI animation selection, transition decisions, phase/keyframe motion, symbol-effect routing, reduce-motion checks, and preview or runtime validation handoffs.

It is not the SwiftUI app architecture workflow, not the SF Symbols selection workflow, and not the Core Animation layer workflow.

## When To Use

- Use this skill when the user asks for SwiftUI animation, motion, transition, symbol-effect, or animated state-change guidance.
- Use this skill when code uses `withAnimation`, `animation(_:value:)`, binding animation, `transaction`, `transition`, `contentTransition`, `matchedGeometryEffect`, `navigationTransition`, `PhaseAnimator`, `KeyframeAnimator`, `TimelineView`, `Canvas`, or `symbolEffect`.
- Use this skill when an animation is too broad, triggers unexpectedly, does not animate, ignores reduce-motion expectations, performs poorly, or mixes state ownership with side-effectful motion code.
- Use this skill when the user wants a design choice between simple state animation, transition, matched geometry, phase animation, keyframes, timeline-driven rendering, or a handoff to lower-level rendering.
- Recommend `swiftui-app-architecture-workflow` when the primary issue is ownership, scene structure, environment, focus, commands, or view composition rather than motion behavior.
- Recommend `sf-symbols-workflow` when the primary issue is choosing, coloring, validating, or customizing the symbol itself.
- Recommend `xcode-build-run-workflow` when the next step is preview, build, run, simulator, screenshot, or project-file validation.

## Single-Path Workflow

1. Classify the motion job:
   - simple state transition
   - insertion or removal transition
   - content transition inside a stable view
   - matched geometry or navigation transition
   - phase-based animation
   - keyframe animation
   - symbol effect
   - timeline or continuously updating drawing
   - performance or accessibility repair
2. Apply the Apple docs gate:
   - read the relevant SwiftUI documentation first
   - state the documented behavior being relied on before recommending implementation
   - if Apple docs and the current code disagree, stop and surface the conflict
   - if no relevant Apple docs can be found, say that explicitly before proceeding
3. Choose the smallest motion primitive that fits the job:
   - `withAnimation` for one user action where all dependent changes should share a transaction
   - `animation(_:value:)` for a specific view subtree reacting to a specific value
   - binding animation when the control binding is the intended animation boundary
   - `transaction` when the task needs to override or disable animation in a subtree
   - `transition` for view insertion or removal
   - `contentTransition` for content changes inside an existing view
   - `matchedGeometryEffect` or navigation transition when identity and geometry continuity matter
   - `PhaseAnimator` for discrete phase sequences
   - `KeyframeAnimator` for coordinated values with explicit timing
   - `TimelineView` or lower-level rendering only when the motion is genuinely time-driven
4. Keep the data flow honest:
   - make animation derive from explicit state
   - avoid hidden timers, global animation state, and side effects inside frequently called animation closures
   - keep expensive work out of per-frame keyframe or timeline closures
   - keep architecture cleanup separate from motion cleanup unless the animation bug is caused by ownership confusion
5. Check accessibility and comfort:
   - verify whether reduce-motion behavior should disable, simplify, or replace motion
   - preserve meaning without relying on motion alone
   - avoid repeated decorative motion unless the user or product explicitly wants it
6. Return one recommendation path with:
   - the motion job class
   - chosen SwiftUI primitive
   - state trigger and animation boundary
   - accessibility behavior
   - documented SwiftUI behavior relied on
   - validation or handoff step

## Inputs

- `request`: optional free-text task description used to classify the animation question.
- `target_platforms`: optional platform list such as `ios`, `macos`, `watchos`, `visionos`, or `mixed-apple`.
- `motion_goal`: optional desired effect such as feedback, transition, attention, loading, progress, delight, or continuity.
- `current_code`: optional relevant SwiftUI code or file paths.
- `validation_surface`: optional validation preference such as preview, simulator, unit snapshot, device, or manual review.
- Defaults:
  - Apple docs-first guidance always applies
  - state-driven SwiftUI animation is preferred before lower-level rendering
  - reduce-motion behavior must be considered for user-facing animation

## Outputs

- `status`
  - `success`: the request belongs to this workflow and a motion recommendation is ready
  - `handoff`: another skill owns the next step after SwiftUI animation-aware classification
  - `blocked`: current docs, code, platform, or validation context is insufficient for an honest recommendation
- `path_type`
  - `state-animation`
  - `transition`
  - `matched-geometry`
  - `phase-animation`
  - `keyframe-animation`
  - `timeline-rendering`
  - `repair`
  - `handoff`
- `output`
  - requested motion job class
  - chosen SwiftUI primitive
  - state trigger and animation boundary
  - accessibility and reduce-motion behavior
  - documented Apple behavior relied on
  - validation or handoff step

## Guards and Stop Conditions

- Do not use broad implicit animation when a value-scoped animation fits.
- Do not hide app, scene, or view ownership problems behind animation wrappers.
- Do not perform expensive work in `KeyframeAnimator`, timeline, or per-frame content closures.
- Do not use motion as the only signal for important state.
- Do not route ordinary SwiftUI animation into Core Animation unless a concrete framework limitation, host-view bridge, or layer-backed need requires it.
- Do not claim preview, simulator, or reduce-motion behavior has been verified unless that validation actually ran.
- Stop with `blocked` when the target OS/platform range is unknown and the chosen animation API depends on availability.

## Fallbacks and Handoffs

- Recommend `swiftui-app-architecture-workflow` when state ownership, scene ownership, focus, command, environment, or composition decisions are the real blocker.
- Recommend `sf-symbols-workflow` when the work is primarily symbol selection, rendering mode, variable color, custom symbols, or symbol availability.
- Recommend `apple-ui-accessibility-workflow` when the work needs a broader accessibility implementation or review beyond reduce-motion and non-motion fallback behavior.
- Recommend `xcode-build-run-workflow` when the next step is Xcode preview, simulator, screenshot, runtime diagnostics, or project-integrity follow-through.
- Recommend `explore-apple-swift-docs` when the user primarily needs raw Apple documentation lookup.
- Recommend `references/snippets/apple-xcode-project-core.md` when repo policy or Xcode project-integrity guidance is needed before validating animation in an app project.

## Fixed Policy

Keep the first release focused on motion classification, SwiftUI primitive choice, reduce-motion behavior, and validation handoffs. If future iterations add deterministic preview or screenshot helpers, document those helpers before relying on them.

## References

### Workflow References

- `references/animation-decision-rules.md`
- `references/transitions-effects-and-accessibility.md`

### Support References

- Recommend `explore-apple-swift-docs` when the user needs direct Apple-docs lookup instead of SwiftUI animation workflow guidance.
- Recommend `references/snippets/apple-xcode-project-core.md` when the user needs reusable Xcode project policy before previewing or validating animation changes.
- Apple documentation anchors to verify include SwiftUI Animations, Managing user interface state, Controlling the timing and movements of your animations, Unifying your app's animations, SwiftUI symbol effects, and Human Interface Guidelines Motion.

### Script Inventory
Files in this package (5)
  • SKILL.md 9 KB
  • agents/openai.yaml 1 KB
  • references/animation-decision-rules.md 3 KB
  • references/transitions-effects-and-accessibility.md 2 KB
  • references/snippets/apple-xcode-project-core.md 26 KB

Versions

The database has no other skills named swiftui-animation-workflow.

Database snapshot: 13.11.2026 · package version 90b1742d26df (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95swiftui-animation
    Implement, review, or improve SwiftUI animations and transitions. Use when adding explicit animations with withAnimation, configuring implicit animations with .animation(_:body:) or .animation(_:value:), configuring spring animations (.smooth, .snappy, .bouncy), building phase…
  • 100ios-animation-code-review
    Reviews iOS animation code for correctness, performance, accessibility, and Apple API best practices. Use when reviewing .swift files containing animation code — withAnimation, .animation(), PhaseAnimator, KeyframeAnimator, matchedGeometryEffect, navigationTransition,…
  • 100ios-animation-implementation
    Write Swift animation code using Apple's latest frameworks — SwiftUI animations, Core Animation, and UIKit. Prefer first-party APIs over third-party libraries. Use when implementing iOS animations, writing animation code, building transitions, creating gesture-driven…
  • 100animation-patterns
    SwiftUI animation patterns including springs, transitions, PhaseAnimator, KeyframeAnimator, SF Symbol effects, scroll-driven effects, mesh gradients, text renderers, and shader effects. Use when implementing, reviewing, or fixing animation or visual-effect code on iOS/macOS.
  • 90native-motion
    Native mobile motion by astudio: React Native / Expo with Reanimated 4 (shared values, worklets, CSS-style transitions, layout animations, gestures with react-native-gesture-handler, haptics), SwiftUI (springs, withAnimation, matchedGeometryEffect,…
  • 90iOS Animation Graphics Skill
    Design, implement, debug, and review accessible Apple-platform animation and graphics with SwiftUI animation, Canvas, TimelineView, matched geometry, phase/keyframe animators, Core Animation, and Lottie. Use for motion design, custom drawing, transitions, particles, animated…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.