A completion Block that is called when the animations in the grouping are completed.
- macOS 10.7+
If set to a non-
nil value, a context’s
completion is guaranteed to be called on the main thread as soon as all animations subsequently added to the current
NSAnimation grouping have completed or been cancelled.
This method drives the underlying
completion property, although the Application Kit may assign a different, intermediary
completion to the current
The completion handler waits for all animations to which the handler applies, independent of whether they are evaluated by the Application Kit or delegated to Core Animation for evaluation in the render tree before firing.
If no animations are added before the current grouping is ended—or the completionHandler is set to a different value—the handler will be invoked immediately.