Review, write, and fix SwiftUI animations. Apply modern animation APIs with correct timing, transitions, and accessibility handling using Swift 6.2 patterns.
| State-driven | withAnimation, .animation(:value:) | Simple property changes | | Multi-phase | PhaseAnimator | Sequenced multi-step animations | | Keyframe | KeyframeAnimator | Complex multi-property choreography | | Shared element | matchedGeometryEffect | Layout-driven hero transitions |
| Navigation | matchedTransitionSource + .navigationTransition(.zoom) | NavigationStack push/pop zoom | | View lifecycle | .transition() | Insertion and removal | | Text content | .contentTransition() | In-place text/number changes | | Symbol | .symbolEffect() | SF Symbol animations | | Custom | CustomAnimation protocol | Novel timing curves |
Implementa, rivedi o migliora le animazioni e le transizioni di SwiftUI. Utilizzare quando si aggiungono animazioni implicite o esplicite con withAnimation, si configurano animazioni primaverili (.smooth, .snappy, .bouncy), si creano animazioni di fase o fotogrammi chiave con PhaseAnimator/KeyframeAnimator, si creano transizioni di eroi con matchedGeometryEffect o matchedTransitionSource, si aggiungono effetti SF Symbol (rimbalzo, impulso, variableColor, respiro, rotazione, oscillazione), si implementano tipi di transizione personalizzati o CustomAnimation o si garantisce il rispetto delle animazioni accessibilitàReduceMotion. Fonte: dpearson2699/swift-ios-skills.