---
title: "init(customHDRReferenceWhite:adaptiveToneMapping:)"
framework: colorsync
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/colorvolumetransform-swift.struct/init(customhdrreferencewhite:adaptivetonemapping:)"
---

# init(customHDRReferenceWhite:adaptiveToneMapping:)

Creates a color volume transform.

## Declaration

```swift
init(customHDRReferenceWhite: Float? = nil, adaptiveToneMapping: ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform.ToneMapping? = nil) throws
```

## Parameters

- `customHDRReferenceWhite`: A custom HDR reference white luminance in nits, or nil to use the standard 203-nit reference white. Must be greater than 0 when specified.
- `adaptiveToneMapping`: The headroom-adaptive tone mapping to apply, or nil for none.

## Discussion

Discussion note: ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.invalidHDRReferenceWhite(_:) if customHDRReferenceWhite is less than or equal to 0.
