title: How can I change the whiteBalanceGains value?
body: <p>I am getting the error:</p>
  
  <pre><code>- whiteBalanceGains contain an out-of-range value. Red, green, and blue gains must be in the [1, maxWhiteBalanceGain] range
  </code></pre>
  
  <p>How can I determine maxWhiteBalanceGain range?</p>
  
  <pre><code>AVCaptureDevice *device =
  [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
  AVCaptureWhiteBalanceTemperatureAndTintValues temperatureAndTint = {
      .temperature = 8000,
      .tint = 146,
  };
  
  [device deviceWhiteBalanceGainsForTemperatureAndTintValues:temperatureAndTint];
  
  [device setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:[device deviceWhiteBalanceGainsForTemperatureAndTintValues:temperatureAndTint] completionHandler:^(CMTime syncTime) {
  
   }];
  </code></pre>