- by animation a Shape
- animation via their ViewModifiers
protocol ViewModifier {
typealias Content // the type of the View passed to body(content:)
func body(content: Content) -> some View {
return some View that almost certainly contains the View
}
}
Important takeaways about Animation
Only changes can be animated. Changes to what?
- ViewModifier arguments
- Shapes
- The “existence” (or not) of a View in the UI
(the comings and goings of Views)