Enumeration Case

UIModalPresentationStyle.automatic

A presentation style chosen by the system.

Declaration

case automatic = -2

Discussion

Use this value when you want to use the system's recommended presentation style. For most view controllers, UIKit maps this style to the UIModalPresentationStyle.pageSheet style, but some system view controllers may map to a different style.

See Also

Presentations

case fullScreen

A presentation style in which the presented view covers the screen.

case pageSheet

A presentation style that partially covers the underlying content.

case formSheet

A presentation style that displays the content centered in the screen.

case currentContext

A presentation style where the content is displayed over another view controller’s content.

case custom

A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects.

case overFullScreen

A view presentation style in which the presented view covers the screen.

case overCurrentContext

A presentation style where the content is displayed over another view controller’s content.

case blurOverFullScreen

A presentation style that blurs the underlying content before displaying new content in a full-screen presentation.

case popover

A presentation style where the content is displayed in a popover view.

case none

A presentation style that indicates no adaptations should be made.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software