Contents

presentationStyle

The presentation style to use for the transition.

Declaration

var presentationStyle: UIModalPresentationStyle { get }

Return Value

The modal presentation style associated with the transition or UIModalPresentationStyle.none if the transition is not a modal presentation or dismissal. For a list of possible values, see “Modal Presentation Styles” in UIViewController.

Discussion

When presenting or dismissing a view controller modally, this method returns the presentation style used for that transition. For interface rotations and other events that don’t involve a specific transition between view controllers, this method returns UIModalPresentationStyle.none.

See Also

Getting the behavior attributes