How to capture 48MP capture with Ultra wide lens using iPhone 16 pro max

I am working on capturing 48MP images using the iPhone 16 Pro Max with the Ultra-wide camera. I’ve updated the code to capture the maximum supported dimensions with the following snippet:

if #available(iOS 16.0, *) { 
    photoOutput.maxPhotoDimensions = device.activeFormat.supportedMaxPhotoDimensions.last!
    photoSettings.maxPhotoDimensions = .init(width: 5712, height: 4284)
}

However, I’m still not getting the expected results. My goal is to capture 48MP images, and I want to confirm if the Ultra-wide camera supports this resolution or if I’m missing any other configuration.

Any guidance would be appreciated!

Good question.

How to capture 48MP capture with Ultra wide lens using iPhone 16 pro max
 
 
Q