Contents

modalTransitionStyle

The transition style to use when presenting the view controller.

Declaration

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:) 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