Contents

session(_:didRemove:)

Tells the delegate that one or more anchors have been removed from the session.

Declaration

optional func session(_ session: ARSession, didRemove anchors: [ARAnchor])

Parameters

  • session:

    The session providing information.

  • anchors:

    The anchors newly removed from the session.

Discussion

Depending on the session configuration, ARKit may automatically remove anchors from a session.

If you display an AR experience using SceneKit or SpriteKit, you can instead implement one of the following methods instead to track not only the anchors in the session but also any corresponding SceneKit or SpriteKit content:

See Also

Handling Content Updates