Creates an animation event.
- iOS 8.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
A number between
1specifying the relative time for triggering the event.
A block to call at the specified time.
An animation event object.
time parameter is relative to the duration of the animation the event is attached to. For example, an event with a time of
0 triggers when the animation is halfway complete, and an event with a time of
1 triggers when the animation ends.