I'm using the AVCaptureDevice.setTorchModeOn(level) method to turn on the flashlight with adjustable brightness.
It functions properly on my outdated iPhone SE; as I move from level 0 to level 1, I can plainly see the four distinct brightness levels.
However, the iPhone 11 Pro's flashlight doesn't activate until level 1.0! And while not at its brightest, it is still visible (compared to a flashlight from Control Center).
Although I used the maxAvailableTorchLevel constant, the outcomes were the same as when I used 1.0.
Additionally, attempted values greater than 1.0 produce an error (as expected).
Did anyone else experience this issue? Perhaps there are some solutions?