swiftui-animations
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
- Animations are driven by state changes – SwiftUI animates the difference between old and new state
- Transactions propagate down – When you wrap a state change in
withAnimation, a transaction flows through the view hierarchy - Only animatable data animates – Types must conform to
Animatable(most built-in types do: CGFloat, Color, CGSize, etc.) - 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
Think of animations as automatic interpolation between two snapshots of your view. Your job is to:
- Define the two states clearly
More from tryhuset/agent-skills
swift-composable-architecture
Use when building, refactoring, debugging, or testing iOS/macOS features using The Composable Architecture (TCA). Covers feature structure, effects, dependencies, navigation patterns, and testing with TestStore.
49ios26-liquid-glass
Use when implementing iOS 26 Liquid Glass effects in SwiftUI. Covers glassEffect modifier, GlassEffectContainer, morphing with glassEffectID, and correct parameter usage.
18commit-organizer
Use when you need to organize uncommitted changes into logical, well-structured commits with clear messages.
16backstage
Generate a backstage.yaml catalog file for a product or system following internal conventions. Use when the user asks to create, scaffold, or update a backstage.yaml, Backstage catalog, or service catalog entry.
5