Created
March 4, 2019 14:32
-
-
Save giln/9e2a7137a91ca36729fc789a0000c33c to your computer and use it in GitHub Desktop.
ARViewController #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ARKit | |
class ARViewController: UIViewController { | |
// MARK: - Variables | |
let sceneView = ARSCNView() | |
// MARK: - Lifecycle | |
override func loadView() { | |
super.loadView() | |
view = sceneView | |
// Create a session configuration | |
let configuration = ARWorldTrackingConfiguration() | |
// Run the session with the configuration | |
sceneView.session.run(configuration) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment