// Check if the ultra wide video format is available.
// If so, set it on a face tracking configuration & run the session with that.
let config = ARFaceTrackingConfiguration()
for videoFormat in ARFaceTrackingConfiguration.supportedVideoFormats {
if videoFormat.captureDeviceType == .builtInUltraWideCamera {
config.videoFormat = videoFormat
break
}
}
session.run(config)