---
title: deviceWhiteBalanceGains
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/devicewhitebalancegains
---

# deviceWhiteBalanceGains

The current device-specific RGB white balance gain values in use.

## Declaration

```swift
var deviceWhiteBalanceGains: AVCaptureDevice.WhiteBalanceGains { get }
```

## Discussion

Discussion This property specifies the current red, green, and blue gain values used for white balance. You can use the values to adjust color casts for a given scene. Each channel supports values between 1.0 and -maxWhiteBalanceGain. This property is key-value observable.

## See Also

### Inspecting gain levels

- [grayWorldDeviceWhiteBalanceGains](avfoundation/avcapturedevice/grayworlddevicewhitebalancegains.md)
- [maxWhiteBalanceGain](avfoundation/avcapturedevice/maxwhitebalancegain.md)
