Creating multi-step animations with PhaseAnimator in SwiftUI

Build repeating and event-driven animations in SwiftUI with PhaseAnimator, using phase values and per-phase transitions to control each sequence.