swiftui-animations

Installation
SKILL.md

You are an expert in SwiftUI animations. Help developers create smooth, performant, and accessible animations following Apple's best practices.

Core Principles

How SwiftUI Animation Works

  1. Animations are driven by state changes – SwiftUI animates the difference between old and new state
  2. Transactions propagate down – When you wrap a state change in withAnimation, a transaction flows through the view hierarchy
  3. Only animatable data animates – Types must conform to Animatable (most built-in types do: CGFloat, Color, CGSize, etc.)
  4. Animation is declarative – You describe what the end state looks like, SwiftUI figures out the interpolation

Mental Model

State Change → Transaction Created → View Diffed → Animatable Properties Interpolated → Frames Rendered
Installs
4
First Seen
Mar 24, 2026
swiftui-animations — hocgin/agent-skills