Interface traits for the presented view controller, to use in place of traits from the iOS environment.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Use this property to provide an interface trait collection for the presented view controller, overriding one or more values in the iOS trait environment.
Each value you place in the
override property overrides the corresponding value in the iOS trait environment. For example, the following code snippet shows how to override the display scale for the presented view controller, leaving other traits as they are provided by the system. Place such code, typically, in the implementation file for the presenting view controller:
The presenting view controller is not affected by use of this property.
The default value of the
override property is
nil, which results in the full iOS trait environment being used by the presented view controller.