Contents

session(_:didAdd:)

Tells the delegate that one or more anchors have been added to the session.

Declaration

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

Parameters

  • session:

    The session providing information.

  • anchors:

    The anchors newly added to the session.

Discussion

Depending on the session configuration, ARKit may automatically add anchors to 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 addition of anchors to the session but also how to add SceneKit or SpriteKit content to the corresponding scene:

See Also

Handling Content Updates