UIAdaptivePresentationControllerDelegate
A set of methods that, in conjunction with a presentation controller, determine how to respond to trait changes in your app.
Declaration
@MainActor protocol UIAdaptivePresentationControllerDelegate : NSObjectProtocolOverview
After implementing an object that conforms to this protocol, assign that object to the delegate property of an appropriate UIPresentationController object. Your delegate can suggest a new presentation style or an entirely new view controller for displaying content. For more information about using the delegate to respond to size class changes, see UIPresentationController.
Topics
Adapting the presentation style
Adapting the view controller
Responding to adaptive transitions
presentationController(_:willPresentWithAdaptiveStyle:transitionCoordinator:)presentationControllerDidAttemptToDismiss(_:)presentationControllerShouldDismiss(_:)presentationControllerDidDismiss(_:)presentationControllerWillDismiss(_:)