animationShouldStart(_:)
Sent to the delegate just after an animation is started.
Declaration
nonisolated optional func animationShouldStart(_ animation: NSAnimation) -> BoolParameters
- animation:
The
NSAnimationobject that was just started.
Return Value
false to cancel the animation, true to have the animation proceed.
Discussion
The delegate is sent this message just after animation receives a start() message. The delegate can use this method to prepare objects and resources for the effect.