Commit c515a4f7 by Orkhan Alikhanov

Added setCompletionCallbackForNextTransition

parent e3d0e7c7
......@@ -576,6 +576,14 @@ public extension MotionTransition {
func setContainerBackgroundColorForNextTransition(_ color: UIColor) {
containerBackgroundColor = color
}
/**
Set the completion callback closure for the next transition.
- Parameter _ completion: An optional closure receiving a Boolean indicating if transition is finishing or cancelling.
*/
func setCompletionCallbackForNextTransition(_ completion: ((Bool) -> Void)?) {
completionCallback = completion
}
}
internal extension MotionTransition {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment