Contents

activePresentationController

The presentation controller that’s managing the view controller.

Declaration

var activePresentationController: UIPresentationController? { get }

Discussion

If the original presentation controller hasn’t adapted, the value of this property is presentationController. If the original presentation controller has adapted to a different presentation controller, the value of this property is the adaptive presentation controller.

If the view controller hasn’t presented yet, this property returns nil.

See Also

Adding a custom transition or presentation