animationEnded(_:)
Tells your animator object that the transition animations have finished.
Declaration
optional func animationEnded(_ transitionCompleted: Bool)Parameters
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.