<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/modalPresentationStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)modalPresentationStyle"
  },
  "title" : "modalPresentationStyle"
}
-->

# modalPresentationStyle

The presentation style for modal view controllers.

```
var modalPresentationStyle: UIModalPresentationStyle { get set }
```

## Discussion

Presentation style defines how the system presents a modal view controller. The system uses this value only in regular-width size classes. In compact-width size classes, some styles take on the behavior of other styles. You can influence this behavior by implementing the [`adaptivePresentationStyle(for:traitCollection:)`](/documentation/UIKit/UIAdaptivePresentationControllerDelegate/adaptivePresentationStyle(for:traitCollection:)) method.

Presentation style also impacts the content size of a modal view controller. For example, [`UIModalPresentationStyle.pageSheet`](/documentation/UIKit/UIModalPresentationStyle/pageSheet) uses an explicit size that the system provides. By contrast, [`UIModalPresentationStyle.formSheet`](/documentation/UIKit/UIModalPresentationStyle/formSheet) uses the view controller’s [`preferredContentSize`](/documentation/UIKit/UIViewController/preferredContentSize) property, which you can set.

The default value is [`UIModalPresentationStyle.automatic`](/documentation/UIKit/UIModalPresentationStyle/automatic). For a list of presentation styles and their compatibility with the various transition styles, see [`UIModalPresentationStyle`](/documentation/UIKit/UIModalPresentationStyle).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)