Skip to content

Instantly share code, notes, and snippets.

@chriswebb09
Created August 26, 2017 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswebb09/d8293c84eff7c61c4e4267a0fb39dc8a to your computer and use it in GitHub Desktop.
Save chriswebb09/d8293c84eff7c61c4e4267a0fb39dc8a to your computer and use it in GitHub Desktop.
class ViewController: UIViewController, ARSCNViewDelegate, ARSessionDelegate {
@IBOutlet weak var sceneView: ARSCNView!
override func viewDidLoad() {
super.viewDidLoad()
}
func run() {
let configuration = ARWorldTrackingConfiguration()
configuration.worldAlignment = .gravityAndHeading
sceneView.session.delegate = self
sceneView.session.run(configuration)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment