Adds the specified completion block to the animator.
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
A block to execute when the animations finish. This block has no return value and takes the following parameter:
The position where the animations stopped. Use this value to specify whether the animations stopped at their starting point, their end point, or their current position.
Use this method to add the completion blocks to your custom animator object. Completion blocks should execute after the animations finish successfully. If the
stop method is called, do not execute any completion blocks if the
without parameter for that method contains the value
YES. If the parameter is
NO and the client subsequent calls the
finish method, execute the completion blocks in your implementation of that method. Your implementation must be able to handle multiple calls to this method.