Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewWillAppear(_ animated: Bool) {
- super.viewWillAppear(animated)
- guard let referenceImages = ARReferenceImage.referenceImages(inGroupNamed: "Mona Lisa Room", bundle: nil) else {
- fatalError("Missing expected asset catalog resources.")
- }
- let configuration = ARWorldTrackingConfiguration()
- configuration.detectionImages = referenceImages
- sceneView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
- }
Add Comment
Please, Sign In to add comment