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.
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
When using the
UIModal style to present a view controller, this property controls which existing view controller in your view controller hierarchy is actually covered by the new content. When a context-based presentation occurs, UIKit starts at the presenting view controller and walks up the view controller hierarchy. If it finds a view controller whose value for this property is
true, it asks that view controller to present the new view controller. If no view controller defines the presentation context, UIKit asks the window’s root view controller to handle the presentation.
The default value for this property is
false. Some system-provided view controllers, such as
UINavigation, change the default value to