The Working Approach
animation-patterns is a SwiftUI reference for choosing and reviewing animation APIs. It routes state changes, sequenced phases, property keyframes, view insertion and navigation transitions into different implementation patterns. It also covers SF Symbol effects and geometry-driven visual treatments.
The source focuses on API-shape mistakes that can derail implementation: mixing spring parameter generations, selecting the wrong transition scope or confusing shared geometry with navigation zoom. Platform availability and the project's deployment target remain part of the decision, alongside reduced-motion behavior and inexpensive per-frame work.
Expected Deliverables
- A SwiftUI animation pattern selected for the actual state change.
- A targeted API-correctness review and correction guidance.
- Accessibility, deployment-target and per-frame performance checks.
From Brief to Review
- 01Classify the animation
Distinguish a state tween, phase sequence, multi-property timeline, insertion/removal or navigation transition before choosing an API.
- 02Check API generation and scope
Match parameter names and closures to the installed SDK and deployment target. Verify that the animated view actually participates in the intended state change.
- 03Review interaction and cost
Check interruption, reduced motion, completion behavior and expensive work inside per-frame closures. Exercise the actual UI in its target environment.