Transition and interaction animations.
Profiles
| Name | SwiftUI |
|---|---|
snappy |
.snappy |
smooth |
.smooth(duration: 0.35) |
bouncy |
.bouncy(duration: 0.5) |
gentle |
.easeInOut(duration: 0.25) |
instant |
.linear(duration: 0) |
Usage
"animation": "bouncy"
Or custom:
"animation": { "profile": "smooth", "duration": 0.5 }
Related
- Visibility — uses
gentlefor show/hide - Control Definition — any control can override its animation