This is Swift 2. I can not find anything on this. I get an error
Cannot invoke 'lockForConfiguration' with an argument list of type '(() -> ())'
On the second line here.
if let device = captureDevice { device.lockForConfiguration() { device.videoZoomFactor = 1.0 + CGFloat(ratioValue) device.unlockForConfiguration() } print(ratioValue) }
ios swift avfoundation avcapturesession
Matt bettinson
source share