---
title: "anchor(for:)"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/arscnview/anchor(for:)"
---

# anchor(for:)

Returns the AR anchor associated with the specified SceneKit node, if any.

## Declaration

```swift
func anchor(for node: SCNNode) -> ARAnchor?
```

## Parameters

- `node`: A SceneKit node in the view’s scene.

## Return Value

Return Value The ARAnchor object tracking the node, or nil if the node is not associated with an anchor or not in the view’s scene.

## See Also

### Mapping Content to Real-World Positions

- [node(for:)](arkit/arscnview/node(for:).md)
- [unprojectPoint(_:ontoPlane:)](arkit/arscnview/unprojectpoint(_:ontoplane:).md)
