accessibilityContrast
The accessibility contrast associated with the current environment.
Declaration
var accessibilityContrast: UIAccessibilityContrast { get }Discussion
Use this trait to determine whether the user requested a high contrast between foreground and background content. The user sets the contrast level in the Accessibility area in Settings.
See Also
Retrieving interface-related traits
userInterfaceStyleUIUserInterfaceStyleuserInterfaceIdiomUIUserInterfaceIdiomuserInterfaceLevelUIUserInterfaceLevellayoutDirectionUITraitEnvironmentLayoutDirectionresolvesNaturalAlignmentWithBaseWritingDirectionUIAccessibilityContrastlegibilityWeightUILegibilityWeightactiveAppearanceUIUserInterfaceActiveAppearancetoolbarItemPresentationSize