Instance Property

providesPresentationContextTransitionStyle

A Boolean value that indicates whether the view controller specifies the transition style for view controllers it presents.

Declaration

var providesPresentationContextTransitionStyle: Bool { get set }

Discussion

When a view controller’s definesPresentationContext property is true, it can replace the transition style of the presented view controller with its own. When the value of this property to true, the current view controller’s transition style is used instead of the style associated with the presented view controller. When the value of this property is false, UIKit uses the transition style of the presented view controller. The default value of this property is false.

See Also

Presenting a View Controller

func show(UIViewController, sender: Any?)

Presents a view controller in a primary context.

func showDetailViewController(UIViewController, sender: Any?)

Presents a view controller in a secondary (or detail)€ context.

func dismiss(animated: Bool, completion: (() -> Void)?)

Dismisses the view controller that was presented modally by the view controller.

var modalPresentationStyle: UIModalPresentationStyle

The presentation style for modally presented view controllers.

enum UIModalPresentationStyle

Modal presentation styles available when presenting view controllers.

var modalTransitionStyle: UIModalTransitionStyle

The transition style to use when presenting the view controller.

enum UIModalTransitionStyle

Transition styles available when presenting view controllers.

var isModalInPresentation: Bool

A Boolean value indicating whether the view controller enforces a modal behavior.

var definesPresentationContext: Bool

A Boolean value that indicates whether this view controller's view is covered when the view controller or one of its descendants presents a view controller.

var disablesAutomaticKeyboardDismissal: Bool

Returns a Boolean indicating whether the current input view is dismissed automatically when changing controls.

class let showDetailTargetDidChangeNotification: NSNotification.Name

Posted when a split view controller is expanded or collapsed.