---
title: modalTransitionStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/modaltransitionstyle
---

# modalTransitionStyle

The transition style to use when presenting the view controller.

## Declaration

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

## Discussion

Discussion This property determines how the view controller’s is animated onscreen when it is presented using the 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. For a list of possible transition styles, and their compatibility with the available presentation styles, see the UIModalTransitionStyle constant descriptions.

## See Also

### Presenting a view controller

- [show(_:sender:)](uikit/uiviewcontroller/show(_:sender:).md)
- [showDetailViewController(_:sender:)](uikit/uiviewcontroller/showdetailviewcontroller(_:sender:).md)
- [UIViewController.ShowDetailTargetDidChangeMessage](uikit/uiviewcontroller/showdetailtargetdidchangemessage.md)
- [present(_:animated:completion:)](uikit/uiviewcontroller/present(_:animated:completion:).md)
- [dismiss(animated:completion:)](uikit/uiviewcontroller/dismiss(animated:completion:).md)
- [modalPresentationStyle](uikit/uiviewcontroller/modalpresentationstyle.md)
- [UIModalPresentationStyle](uikit/uimodalpresentationstyle.md)
- [UIModalTransitionStyle](uikit/uimodaltransitionstyle.md)
- [isModalInPresentation](uikit/uiviewcontroller/ismodalinpresentation.md)
- [definesPresentationContext](uikit/uiviewcontroller/definespresentationcontext.md)
- [providesPresentationContextTransitionStyle](uikit/uiviewcontroller/providespresentationcontexttransitionstyle.md)
- [disablesAutomaticKeyboardDismissal](uikit/uiviewcontroller/disablesautomatickeyboarddismissal.md)
- [showDetailTargetDidChangeNotification](uikit/uiviewcontroller/showdetailtargetdidchangenotification.md)
