ColorRenderingMode
The set of possible working color spaces for color-compositing operations.
Declaration
type ColorRenderingMode = 'extendedLinear' | 'linear' | 'nonLinear';enum ColorRenderingModePass a literal, or build one with SwiftUI.ColorRenderingMode from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'extendedLinear'SwiftUI.ColorRenderingMode.extendedLinearThe extended linear sRGB working color space.
'linear'SwiftUI.ColorRenderingMode.linearThe linear sRGB working color space.
'nonLinear'SwiftUI.ColorRenderingMode.nonLinearThe non-linear sRGB working color space.
Overview
Each color space guarantees the preservation of a particular range of color values.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Appearance.
- BackgroundProminenceThe prominence of backgrounds underneath other views.
- 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.
- 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.