79439187

Date: 2025-02-14 11:22:00
Score: 1
Natty:
Report link

I found a potential fix for this issue: The async method needs to be called instead of the one with the completion handler.

Task {
    let accessIsGranted = await AVCaptureDevice.requestAccess(for: .video)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Luciano Perez