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

# modalTransitionStyle

The transition style to use when presenting the view controller.

```
var modalTransitionStyle: UIModalTransitionStyle { get set }
```

## Discussion

This property determines how the view controller’s is animated onscreen when it is presented using the [`present(_:animated:completion:)`](/documentation/UIKit/UIViewController/present(_:animated:completion:)) method. To change the transition type, you must set this property before presenting the view controller. The default value for this property is [`UIModalTransitionStyle.coverVertical`](/documentation/UIKit/UIModalTransitionStyle/coverVertical).

For a list of possible transition styles, and their compatibility with the available presentation styles, see the [`UIModalTransitionStyle`](/documentation/UIKit/UIModalTransitionStyle) constant descriptions.

---

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)