userInterfaceLevel
The elevation level of the interface.
Declaration
var userInterfaceLevel: UIUserInterfaceLevel { get set }Discussion
Levels create a visual separation between different parts of your UI. Window content typically appears at the UIUserInterfaceLevel.base level. When you want parts of your UI to stand out from the underlying background, assign the UIUserInterfaceLevel.elevated level to them. For example, the system assigns the UIUserInterfaceLevel.elevated level to alerts and popovers.
See Also
Getting and setting trait values
accessibilityContrastactiveAppearancedisplayGamutdisplayScaleforceTouchCapabilityheadroomUsageLimithorizontalSizeClassimageDynamicRangelayoutDirectionlegibilityWeightlistEnvironmentpreferredContentSizeCategoryresolvesNaturalAlignmentWithBaseWritingDirectionsceneCaptureStatesplitViewControllerLayoutEnvironment