I found the logic problem, when a session is reset, arView.scene.anchors.removeAll() statement is executed but does not clear a global variable : var currentAnchors: [ARAnchor] { return arView.session.currentFrame?.anchors ?? [] }. I'm not 100% positive but it looks like this statement adds an element in the array every time an anchor is added to a scene but does not get cleared when the anchors in the scene are removed. Anyone recommend the best way to clear the array when its a computed variable? It wont allow me to use removeall()
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: