Skip to content

Instantly share code, notes, and snippets.

@giln
Created March 4, 2019 14:43
Show Gist options
  • Save giln/9a019daae1b39d854b85a8ff9dc581f6 to your computer and use it in GitHub Desktop.
Save giln/9a019daae1b39d854b85a8ff9dc581f6 to your computer and use it in GitHub Desktop.
SessionConfiguration
// Create a session configuration
let configuration = ARWorldTrackingConfiguration()
// Enable Horizontal plane detection
configuration.planeDetection = .horizontal
// We want to receive the frames from the video
sceneView.session.delegate = self
// Run the session with the configuration
sceneView.session.run(configuration)
// The delegate is used to receive ARAnchors when they are detected.
sceneView.delegate = self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment