Skip to content

Instantly share code, notes, and snippets.

@simform-solutions
Created June 20, 2018 09:39
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 simform-solutions/bef8ca0cd81685a9f5ff676ab27d9d45 to your computer and use it in GitHub Desktop.
Save simform-solutions/bef8ca0cd81685a9f5ff676ab27d9d45 to your computer and use it in GitHub Desktop.
let configuration = ARWorldTrackingConfiguration()
// ARReferenceObject(archiveURL :... this method used when we have ARReferenceObject Store in local Document Directory
configuration.detectionObjects = Set([try ARReferenceObject(archiveURL: objectURL!)])
// ARReferenceObject.referenceObjects(inGroupNamed... this method used when we have ARReferenceObject Store in Assest Folder
configuration.detectionObjects = ARReferenceObject.referenceObjects(inGroupNamed: "", bundle: .main)!
sceneView.session.run(configuration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment