Asks the delegate for the new presentation style to use.
- iOS 8.0+
- 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.
In iOS 8.3 and later, use the
adaptive method to handle all trait changes instead of this method. If you do not implement that method, you can use this method to change the presentation style when transitioning to a horizontally compact environment.
If you do not implement this method or if you return an invalid style, the current presentation controller returns its preferred default style.