<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/WhiteBalanceGains",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@SA@AVCaptureWhiteBalanceGains"
  },
  "title" : "AVCaptureDevice.WhiteBalanceGains"
}
-->

# AVCaptureDevice.WhiteBalanceGains

A structure that defines RGB white balance gain values.

```
struct WhiteBalanceGains
```

## Topics

### Creating white balance gains

[`init()`](/documentation/AVFoundation/AVCaptureDevice/WhiteBalanceGains/init())

The default initializer for white balance gains.

[`init(redGain:greenGain:blueGain:)`](/documentation/AVFoundation/AVCaptureDevice/WhiteBalanceGains/init(redGain:greenGain:blueGain:))

Initializes a white balance gain from its red, green, and blue gain components.

### Isolating gain by color channel

[`blueGain`](/documentation/AVFoundation/AVCaptureDevice/WhiteBalanceGains/blueGain)

The blue gain component of the white balance value.

[`greenGain`](/documentation/AVFoundation/AVCaptureDevice/WhiteBalanceGains/greenGain)

The green gain component of the white balance value.

[`redGain`](/documentation/AVFoundation/AVCaptureDevice/WhiteBalanceGains/redGain)

The red gain component of the white balance value.



---

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)