Instance Method

presentationTransitionDidEnd(_:)

Notifies the presentation controller that the presentation animations finished.

Declaration

func presentationTransitionDidEnd(_ completed: Bool)

Parameters

completed

true if the animations completed and the presented view controller is now visible or false if the animations were canceled and the presenting view controller is still visible.

Discussion

The default implementation of this method does nothing. Subclasses can override this method and use it to perform any required cleanup. For example, if the completed parameter is false, you would use this method to remove your presentation’s custom views from the view hierarchy.

For an example of how to implement this method, see Adding Custom Views to a Presentation.

See Also

Tracking the Transition’s Start and End

func presentationTransitionWillBegin()

Notifies the presentation controller that the presentation animations are about to start.

func dismissalTransitionWillBegin()

Notifies the presentation controller that the dismissal animations are about to start.

func dismissalTransitionDidEnd(Bool)

Notifies the presentation controller that the dismissal animations finished.