The presentation style for modally presented view controllers.
SDKs
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var modalPresentationStyle: UIModal Presentation Style { get set }
Discussion
The presentation style determines how a modally presented view controller is displayed onscreen. In a horizontally compact environment, modal view controllers are always presented full-screen. In a horizontally regular environment, there are several different presentation options.
The default value for this property is UIModal
. For a list of possible presentation styles, and their compatibility with the available transition styles, see the UIModal
constant descriptions.