---
title: "view(_:didAdd:for:)"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/arskviewdelegate/view(_:didadd:for:)"
---

# view(_:didAdd:for:)

Tells the delegate that a SpriteKit node corresponding to a new AR anchor has been added to the scene.

## Declaration

```swift
optional func view(_ view: ARSKView, didAdd node: SKNode, for anchor: ARAnchor)
```

## Parameters

- `view`: The doc://com.apple.arkit/documentation/ARKit/ARSKView object rendering the scene.
- `node`: The newly added SpriteKit node.
- `anchor`: The AR anchor corresponding to the node.

## Discussion

Discussion Depending on the session configuration, ARKit may automatically add anchors to a session. The view calls this method once for each new anchor. ARKit also calls this method to provide visual content for any ARAnchor objects you manually add using the session’s add(anchor:) method. You can provide visual content for the anchor by adding child nodes. Alternatively, you can implement the view(_:nodeFor:) method to create your own node (or instance of an SKNode subclass) for an anchor.

## See Also

### Handling Content Updates

- [view(_:nodeFor:)](arkit/arskviewdelegate/view(_:nodefor:).md)
- [view(_:willUpdate:for:)](arkit/arskviewdelegate/view(_:willupdate:for:).md)
- [view(_:didUpdate:for:)](arkit/arskviewdelegate/view(_:didupdate:for:).md)
- [view(_:didRemove:for:)](arkit/arskviewdelegate/view(_:didremove:for:).md)
