Is there a way to specify to the device that when one sets setTorchModeOnWithLevel
that they would activate the Retina Flash (iPhone6s/7's front facing flash) instead of the back True-Tone LED Flash?
The following standard code appears to only be able to activate the rear LED:
AVCaptureDevice.defaultDevice(withDeviceType: AVCaptureDeviceType.builtInDualCamera,
mediaType: AVMediaTypeVideo, position: .front)
try device.lockForConfiguration();
let torchOn = !device.isTorchActive;
try device.setTorchModeOnWithLevel(1.0);
device.unlockForConfiguration();
Does an API exist within iOS for one to have access to the Retina Flash?