Reality kit changing camera zoom and focal length

Is it possible to change the camera's zoom level and focal length with the reality kit?

Answered by DTS Engineer in 729203022

In iOS 16, you can sometimes configure ARKit's primary AVCaptureDevice if it is available via the configurableCaptureDeviceForPrimaryCamera class property for your particular configuration type.

However, you will find that this AVCaptureDevice reports a minAvailableVideoZoomFactor and a maxAvailableVideoZoomFactor of 1.0, which effectively means that you cannot adjust the videoZoomFactor of the device. So, I recommend that you file an enhancement request for this functionality using Feedback Assistant.

Accepted Answer

In iOS 16, you can sometimes configure ARKit's primary AVCaptureDevice if it is available via the configurableCaptureDeviceForPrimaryCamera class property for your particular configuration type.

However, you will find that this AVCaptureDevice reports a minAvailableVideoZoomFactor and a maxAvailableVideoZoomFactor of 1.0, which effectively means that you cannot adjust the videoZoomFactor of the device. So, I recommend that you file an enhancement request for this functionality using Feedback Assistant.

Reality kit changing camera zoom and focal length
 
 
Q