document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. // Check if the ultra wide video format is available.
  2. // If so, set it on a face tracking configuration & run the session with that.
  3.  
  4. let config = ARFaceTrackingConfiguration()
  5. for videoFormat in ARFaceTrackingConfiguration.supportedVideoFormats {
  6.     if videoFormat.captureDeviceType == .builtInUltraWideCamera {
  7.         config.videoFormat = videoFormat
  8.         break    
  9.     }
  10. }
  11. session.run(config)
');