Asks the delegate for the presentation style to use when the specified set of traits are active.
- iOS 8.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
The presentation controller that is managing the size change. Use this object to retrieve the view controllers involved in the presentation.
The traits representing the target environment. Use these traits to determine
The presentation controller calls this method when the traits of the current environment are about to change. Your implementation of this method can return the preferred presentation style to use for the specified traits. If you do not return one of the allowed styles, the presentation controller uses its preferred default style.
If you do not implement this method in your delegate, UIKit calls the
adaptive method instead.