---
title: currentWhiteBalanceGains
framework: avfoundation
role: symbol
role_heading: Type Property
path: avfoundation/avcapturedevice/currentwhitebalancegains
---

# currentWhiteBalanceGains

A special constant representing the current white balance setting.

## Declaration

```swift
class let currentWhiteBalanceGains: AVCaptureDevice.WhiteBalanceGains
```

## Discussion

Discussion Pass this value to setWhiteBalanceModeLocked(with:completionHandler:) to lock white balance gains to their current value (that is, disable automatic white balancing).
