The prominence of backgrounds underneath other views.
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.
Members (2)
get · iOS 17.0+
standard
TypeScript
static get standard(): BackgroundProminence
Swift declaration
static let standard: BackgroundProminence
The standard prominence of a background
This is the default level of prominence and doesn't require any
adjustment to achieve satisfactory contrast with the background.
get · iOS 17.0+
increased
TypeScript
static get increased(): BackgroundProminence
Swift declaration
static let increased: BackgroundProminence
A more prominent background that likely requires some changes to the
views above it.
This is the level of prominence for more highly saturated and full
color backgrounds, such as focused/emphasized selected list rows.
Typically foreground content should take on monochrome styling to
have greater contrast against the background.