ColorResolvedHDR

A concrete color value, including HDR headroom information.

StructureiOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+visionOS 26.0+Color.ResolvedHDR in SwiftUI

Declaration

React
type ColorResolvedHDR = { color: ColorResolved; headroom?: number | null; };
Swift
@frozen struct ResolvedHDR

Properties

  • headroomnumber | null

    The content headroom of the color.

Overview

Color.ResolvedHDR is a set of RGBA values that represent a color that can be shown. The color components are stored in the extended sRGB color space and may contain a "headroom" value describing how the color is rendered for displays with different dynamic ranges. This is a low-level type, most colors are represented by the Color type.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Appearance.