BackgroundProminence
The prominence of backgrounds underneath other views.
Declaration
type BackgroundProminence = 'increased' | 'standard';struct BackgroundProminencePass a literal, or build one with SwiftUI.BackgroundProminence from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'increased'SwiftUI.BackgroundProminence.increased'standard'SwiftUI.BackgroundProminence.standard
Overview
Background prominence should influence foreground styling to maintain
sufficient contrast against the background. For example, selected rows in
a List and Table can have increased prominence backgrounds with
accent color fills when focused; the foreground content above the background
should be adjusted to reflect that level of prominence.
This can be read and written for views with the
EnvironmentValues.backgroundProminence property.
From Apple’s SwiftUI documentation. Code samples there are Swift.
See also
More in Appearance.
- BadgeProminenceThe visual prominence of a badge.
- ButtonSizingThe sizing behavior of Buttons and other button-like controls.
- ColorA representation of a color that adapts to a given context.
- ColorRenderingModeThe set of possible working color spaces for color-compositing operations.
- ColorResolvedA concrete color value.
- ColorResolvedHDRA concrete color value, including HDR headroom information.
- ColorRGBColorSpaceA profile that specifies how to interpret a color value for display.
- ColorSchemeThe possible color schemes, corresponding to the light and dark appearances.
- GlassA structure that defines the configuration of a physical glass material.
- GlassChainGlass with chained calls: SwiftUI.Glass.interactive(...).
- ImageScaleA scale to apply to vector images relative to text.
- ProminenceA type indicating the prominence of a view hierarchy.