Instance Property

userInterfaceLevel

The elevation level of the interface.

Declaration

@property(nonatomic, readonly) UIUserInterfaceLevel userInterfaceLevel;

Discussion

Levels create a visual separation between different parts of your UI. Window content typically appears at the UIUserInterfaceLevelBase level. When you want parts of your UI to stand out from the underlying background, assign the UIUserInterfaceLevelElevated level to them. For example, the system assigns the UIUserInterfaceLevelElevated level to alerts and popovers.

See Also

Retrieving Interface-Related Traits

userInterfaceStyle

The style associated with the user interface.

UIUserInterfaceStyle

Constants indicating the interface style for the app.

userInterfaceIdiom

The user interface idiom of the trait collection.

UIUserInterfaceIdiom

The interface type for the device or an object that has a trait environment, such as a view and view controller.

UIUserInterfaceLevel

Constants indicating the visual level for content in the window.

layoutDirection

The layout direction associated with the current environment.

UITraitEnvironmentLayoutDirection

Constants indicating the layout direction associated with the current environment.

accessibilityContrast

The accessibility contrast associated with the current environment.

UIAccessibilityContrast

Constants indicating the accessibility contrast setting.

legibilityWeight

The font weight to apply to text.

UILegibilityWeight

Constants indicating the weight to apply to text in your interface.