I'm writing a photo app and I need different overlays in the camera view for iPhones with dual camera (to account for the zoom ui), is there a proper way to check if a dual camera exists?
I tried to get the device and check if it was nil for the non dual camera iPhones, tho it still retunes a device:
let device = AVCaptureDevice.defaultDevice(withDeviceType: .builtInDualCamera, mediaType: AVMediaTypeVideo, position: .back)
Dose anyone know how to detect the dual camera?