Applies the given animation to the view when the specified value changes.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
Parameters
animation
The animation to apply. If
animation
isnil
, the view doesn’t animate.value
A value to monitor for changes.
Return Value
A view that applies animation
to this view whenever value
changes.