Usage of AVCaptureDevice#torchMode or AVCaptureDevice#setTorchModeOn(level:) must absolutely be avoided. These methods can be used to access the device's flashlight, which can be a potential security risk and should only be used when necessary.
Types of changes
[X] New feature (non-breaking change which adds functionality)
[X] I have added unit tests to code changes that make sense.
[X] I have checked the format of all inputs (retrieved from third parties) to ensure it does not lead to security issues
Description
Usage of
AVCaptureDevice#torchMode
orAVCaptureDevice#setTorchModeOn(level:)
must absolutely be avoided. These methods can be used to access the device's flashlight, which can be a potential security risk and should only be used when necessary.Types of changes
[X] New feature (non-breaking change which adds functionality)
[X] I have added unit tests to code changes that make sense.
[X] I have checked the format of all inputs (retrieved from third parties) to ensure it does not lead to security issues