Categories
arkit ios swift

Get camera field of view in iOS 11 ARKit

I’m using a ARSCNView from ARKit to display live a video feed from the camera on the iPad. I have the ARSCNView object setup exactly as Xcode’s Augmented Reality App template. I was wondering if there is a way to get the field of view of the camera?

@IBOutlet var sceneView: ARSCNView!
func start() {
sceneView.delegate = self
sceneView.session.run(ARWorldTrackingConfiguration())
// Retrieve camera FOV here
}