0

I figured out how to adjust the temp and tint of an existing session with deviceWhiteBalanceGainsForTemperatureAndTintValues which takes a parameter of AVCaptureWhiteBalanceTemperatureAndTintValues. But I'm struggling to figure out a way to read the current of new value.

Any one know of a way to do this? I would like to set UISliders with the values of the Temp and Tint.

Molx
  • 6,816
  • 2
  • 31
  • 47
yamski
  • 471
  • 4
  • 14
  • 1
    I have never used this stuff, but according to the documentation there is a `deviceWhiteBalanceGains` property and a `temperatureAndTintValuesForDeviceWhiteBalanceGains()` method. – Martin R Jun 08 '15 at 00:34
  • Thank you. That was exactly it. I totally overlooked it from the docs. – yamski Jun 08 '15 at 03:24

1 Answers1

0

Martin answered it in the comments.

let tempAndTintValues = activeCameraDevice.temperatureAndTintValuesForDeviceWhiteBalanceGains(activeCameraDevice.deviceWhiteBalanceGains)
yamski
  • 471
  • 4
  • 14