Contents

presentationControllerWillDismiss(_:)

Notifies the delegate before a presentation is dismissed.

Declaration

optional func presentationControllerWillDismiss(_ presentationController: UIPresentationController)

Parameters

  • presentationController:

    The presentation controller managing the trait changes from your app.

Discussion

You can use this method to set up animations or interaction notifications with the presentationController’s transitionCoordinator.

This method is not called if the presentation is dismissed programmatically.

See Also

Responding to adaptive transitions