Contents

dismissalTransitionDidEnd(_:)

Notifies the presentation controller that the dismissal animations finished.

Declaration

func dismissalTransitionDidEnd(_ completed: Bool)

Parameters

  • completed:

    True if the animations completed and the presented view controller was dismissed or False if the animations were canceled and the presented view controller is still visible.

Discussion

The default implementation of this method does nothing. Subclasses can override this method and use it to remove any custom views that the presentation controller added to the view hierarchy. Remove your views only if the completed parameter is true.

See Also

Tracking the transition’s start and end