I am writing a photo application and I need different camera overlays for the iPhone with a dual camera (to account for the increase in ui), is there a suitable way to check if a dual camera exists?
I tried to get the device and check if it was zero for non-dual cameras, but it still reconfigures the device:
let device = AVCaptureDevice.defaultDevice(withDeviceType: .builtInDualCamera, mediaType: AVMediaTypeVideo, position: .back)
Does anyone know how to detect a dual camera?
source share