Skip to content

Instantly share code, notes, and snippets.

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 Utsira/33e7694118c5dc4fa930b1ed806a5622 to your computer and use it in GitHub Desktop.
Save Utsira/33e7694118c5dc4fa930b1ed806a5622 to your computer and use it in GitHub Desktop.
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
startTracking()
}
private func startTracking() {
sceneView.debugOptions = [ARSCNDebugOptions.showFeaturePoints]
let configuration = ARWorldTrackingConfiguration()
configuration.planeDetection = [.vertical, .horizontal]
sceneView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment