Skip to content

Instantly share code, notes, and snippets.

@giln
Created March 4, 2019 14:32
Show Gist options
  • Save giln/9e2a7137a91ca36729fc789a0000c33c to your computer and use it in GitHub Desktop.
Save giln/9e2a7137a91ca36729fc789a0000c33c to your computer and use it in GitHub Desktop.
ARViewController #1
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