Contents

animationEnded(_:)

Tells your animator object that the transition animations have finished.

Declaration

optional func animationEnded(_ transitionCompleted: Bool)

Parameters

  • transitionCompleted:

    Contains the value True if the transition completed successfully and the new view controller is now displayed or False if the transition was canceled and the original view controller is still visible.

Discussion

UIKit calls this method at the end of a transition to let you know the results. Use this method to perform any final cleanup operations required by your transition animator when the transition finishes.

See Also

Performing a transition