presentationControllerShouldDismiss(_:)
Asks the delegate for permission to dismiss the presentation.
Declaration
optional func presentationControllerShouldDismiss(_ presentationController: UIPresentationController) -> BoolParameters
- presentationController:
The presentation controller that manages the adaptivity change.
Return Value
true to allow the system to dismiss the presentation, false to refuse the dismissal.
Discussion
The system may call this method at any time. This method isn’t guaranteed to be followed by a call to presentationControllerWillDismiss(_:) or presentationControllerDidDismiss(_:). Make sure that your implementation of this method returns quickly.