Is there a resource available that lists all the AVCaptureDevices for each iPhone model?

I want to fully support the new iPhone models in my app, and ideally need to know the available lenses. However, I can't find information about this on the web and they're not reported in the simulators. The closest thing I found was this, but it's very out of date. https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Cameras/Cameras.html

My only other option is to buy each device, which isn't really feasible, or to log the data from real users via an analytics tool which isn't ideal either.

Thanks, Alex

Answered by DTS Engineer in 860283022

Hey @alexfoxdev,

I’m not aware of such a list.

Nothing beats on-device testing, but assuming you can’t test on every device, I recommend ensuring that your code is as dynamic as possible in this area.

For example, when selecting a capture device, you can use AVCaptureDevice.DiscoverySession to discover all available devices, and then select one based on your app‘s criteria and the device’s capabilities.

Additionally, keep in mind that some iPad’s support external cameras, so the capabilities that your app may be presented with are very dynamic. All the more reason to make your code dynamic and avoid reliance on device specific lists.

--Greg

Hey @alexfoxdev,

I’m not aware of such a list.

Nothing beats on-device testing, but assuming you can’t test on every device, I recommend ensuring that your code is as dynamic as possible in this area.

For example, when selecting a capture device, you can use AVCaptureDevice.DiscoverySession to discover all available devices, and then select one based on your app‘s criteria and the device’s capabilities.

Additionally, keep in mind that some iPad’s support external cameras, so the capabilities that your app may be presented with are very dynamic. All the more reason to make your code dynamic and avoid reliance on device specific lists.

--Greg

Is there a resource available that lists all the AVCaptureDevices for each iPhone model?
 
 
Q