I'm using AVCaptureDevice.setTorchModeOn(level) method to turn on the flashlight at variable brightness.
On my old iPhone SE it's working fine — I can clearly see 4 different brightness levels as I change level from 0 to 1.
But on the iPhone 11 Pro the flashlight turns on only when level is 1.0! And it's brightness if far from maximum level (compared to flashlight from Control Center).
I tried using maxAvailableTorchLevel constant, but results are the same as using 1.0.
Also tried values more than 1.0 — this results in exception (as expected).
Did anyone have this problem too? Maybe there are some workarounds?