The nearest presentation controller that is managing the current view controller.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
If the view controller or one of its ancestors is managed by a presentation controller, this property contains that object. This property is
nil if the view controller is not managed by a presentation controller.
If you have not yet presented the current view controller, accessing this property creates a presentation controller based on the current value in the
modal property. Always set the value of that property before accessing any presentation controllers.