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
Post
Replies
Boosts
Views
Activity
Same issue. Is everyone having this issue supposed to contact Apple Developer Support individually? Some general troubleshooting tips would be great.
@ekurutepe, thanks for sharing your insights!
With your proposed solution, I get the error:
Closure containing control flow statement cannot be used with result builder 'WidgetBundleBuilder'
How are you able to circumvent this limitation?
I observe the same issue. The problem only occurs with the wide angle camera. The systemRecommendedVideoZoomRange is 1-10, but the slider shows 1-5x, despite the displayVideoZoomFactorMultiplier being 1. Great that you could figure out the formula, but I guess this is an issue in iOS that will (hopefully) be fixed soon.