iPhone 13 / 13 mini builtInUltraWideCamera trouble

I ran into a strange problem.

A camera app using AVFoundation, I use the following code;

captureDevice = AVCaptureDevice.default(AVCaptureDevice.DeviceType.builtInUltraWideCamera, for: AVMediaType.video, position: .back)

then,

let isAutoFocusSupported = captureDevice.isFocusModeSupported(.autoFocus)

"isAutoFocusSupported" should be "true".

For iPhone 13 pro, it is "true".

But for 13 / 13 mini, it is "false".

Why?

Additional information, I tried the following code with iPhone 13 / 13 mini without checking "captureDevice.isFocusModeSupported(.autoFocus)";

do {
      try captureDevice.lockForConfiguration()
      captureDevice.focusMode = .autoFocus
      captureDevice.unlockForConfiguration()
    } catch _ {
    }

The result is my app collapsed.

From this symptom, it seems the ultraWideCamera of iPhone 13 / 13 mini does not support "autoFocus", but iPhone 13 pro does.

Is this correct spec? or iOS 15 bug?

Removed

Additional information. I tried the following code with iPhone 13 and 13 mini.

captureDevice = AVCaptureDevice.default(AVCaptureDevice.DeviceType.builtInUltraWideCamera, for: AVMediaType.video, position: .back)
if !captureDevice.isFocusModeSupported(.autoFocus) {
      print("autoFocus not supported")
    }
    if !captureDevice.isFocusModeSupported(.continuousAutoFocus) {
      print("continuousAutoFocus not supported")
    }
    if !captureDevice.isFocusModeSupported(.locked) {
      print("locked not supported")
    }
}

The result is all "not supported".

That means the ultra-wide camera has no focus mode. Does this mean "fixed focus"?

To Apple Support Team, please let me know if this is true.

Same problem here. Have you solve the problem?

builtInDualCamera, builtInDualWideCamera and builtInTripleCamera do not support change focus mode too.

iPhone 13 / 13 mini builtInUltraWideCamera trouble
 
 
Q