December 2019
Intermediate to advanced
388 pages
8h 11m
English
Now, click on ViewController.swift, which is where the main logic of our application lies.
The first thing you will see is that the class requires the ARKit library for the AR, the UIKit library for the interface, and the SceneKit library. This last one is a high-level 3D framework that Apple offers so that you can create, import, and manipulate 3D objects and scenes. We will be using it later in this chapter to import our external 3D models into the scene.
Our only variable at the moment is as follows:
@IBOUtlet var sceneView: ARSCNView!
This is the ARSCNView element from Main.storyboard. It will allow us to control the AR scene.
Our ViewController class inherits from UIViewController. From here, we have three override ...