<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ColorSync",
  "identifier" : "/documentation/ColorSync/ColorSyncProfile/HeadroomAdaptiveGainCurve-swift.struct/ColorVolumeTransform-swift.struct/init(customHDRReferenceWhite:adaptiveToneMapping:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "s:So19ColorSyncProfileRefa0aB0E25HeadroomAdaptiveGainCurveV0A15VolumeTransformV23customHDRReferenceWhite19adaptiveToneMappingAGSfSg_AG0oP0VSgtKcfc"
  },
  "title" : "init(customHDRReferenceWhite:adaptiveToneMapping:)"
}
-->

# init(customHDRReferenceWhite:adaptiveToneMapping:)

Creates a color volume transform.

```
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> Throws: ``doc://com.apple.colorsync/documentation/ColorSync/ColorSyncProfile/HeadroomAdaptiveGainCurve-swift.struct/Error/invalidHDRReferenceWhite(_:)`` if
> `customHDRReferenceWhite` is less than or equal to `0`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)