---
title: isLockingWhiteBalanceWithCustomDeviceGainsSupported
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/islockingwhitebalancewithcustomdevicegainssupported
---

# isLockingWhiteBalanceWithCustomDeviceGainsSupported

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

## Declaration

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

## Discussion

Discussion If the value is false, calling the setWhiteBalanceModeLocked(with:completionHandler:) method with a white balance gains value other than currentWhiteBalanceGains throws an exception.

## See Also

### Setting white balance manually

- [setWhiteBalanceModeLocked(with:completionHandler:)](avfoundation/avcapturedevice/setwhitebalancemodelocked(with:completionhandler:).md)
- [setWhiteBalanceModeLocked(whiteBalanceTemperatureAndTintValues:handler:)](avfoundation/avcapturedevice/setwhitebalancemodelocked(whitebalancetemperatureandtintvalues:handler:).md)
