userInterfaceLevel
The elevation level of the interface.
Declaration
var userInterfaceLevel: UIUserInterfaceLevel { get }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
Retrieving interface-related traits
userInterfaceStyleUIUserInterfaceStyleuserInterfaceIdiomUIUserInterfaceIdiomUIUserInterfaceLevellayoutDirectionUITraitEnvironmentLayoutDirectionresolvesNaturalAlignmentWithBaseWritingDirectionaccessibilityContrastUIAccessibilityContrastlegibilityWeightUILegibilityWeightactiveAppearanceUIUserInterfaceActiveAppearancetoolbarItemPresentationSize