I have a camera in my app. It’s been carefully implemented following a lot of documentation, but it still has a major annoyance; the field of view is significantly smaller than the stock camera app. Here’s two screenshots taken at approx the same distance for reference. My app is on the right, showing the entire preview stream from the camera.
Apple docs suggest using
AVCaptureDevice.DiscoverySession, and my app uses the former;
AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back)
I’ve tried many of the different capture devices, and none of them give me the same wide preview as the stock Camera app.
What am I doing wrong?