Posts

Post marked as solved
4 Replies
Replied In turn on flash
Please note the definitions. An iPhone has a flash and a torch. The flash fires when a photo is taken. The torch can be switched on independently of taking a photo (e.g. for a video recording). The torch can be switched on/off with a maximum frequency of 120 Hz as far as I know. If you want full-intensity flash: set the flash mode to auto or on and take a photo. Other than that, you can switch on/off the torch light either by setting the torch mode to on or by setting it on with a certain intensity level (see link below). Be aware that you need a running capture session to get full intensity for the torch (which is still less intense than the flash). https://developer.apple.com/documentation/avfoundation/avcapturedevice/flashmode https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624609-settorchmodeon