<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/isLockingWhiteBalanceWithCustomDeviceGainsSupported",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(py)lockingWhiteBalanceWithCustomDeviceGainsSupported"
  },
  "title" : "isLockingWhiteBalanceWithCustomDeviceGainsSupported"
}
-->

# isLockingWhiteBalanceWithCustomDeviceGainsSupported

A Boolean value that indicates whether the device supports locking white balance to specific gain values.

```
var isLockingWhiteBalanceWithCustomDeviceGainsSupported: Bool { get }
```

## Discussion

If the value is <doc://com.apple.documentation/documentation/Swift/false>, calling the [`setWhiteBalanceModeLocked(with:completionHandler:)`](/documentation/AVFoundation/AVCaptureDevice/setWhiteBalanceModeLocked(with:completionHandler:)) method with a white balance gains value other than [`currentWhiteBalanceGains`](/documentation/AVFoundation/AVCaptureDevice/currentWhiteBalanceGains) throws an exception.

---

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)