---
title: HasAnchoring
framework: realitykit
role: symbol
role_heading: Protocol
path: realitykit/hasanchoring
---

# HasAnchoring

An interface that enables anchoring of virtual content to a real-world object in an AR scene.

## Declaration

```swift
@MainActor @preconcurrency protocol HasAnchoring : Entity
```

## Topics

### Getting the component

- [anchoring](realitykit/hasanchoring/anchoring.md)

### Identifying the AR anchor

- [anchorIdentifier](realitykit/hasanchoring/anchoridentifier.md)

### Moving the anchor

- [reanchor(_:preservingWorldTransform:)](realitykit/hasanchoring/reanchor(_:preservingworldtransform:).md)

## Relationships

### Inherits From

- [Entity](realitykit/entity.md)

### Conforming Types

- [AnchorEntity](realitykit/anchorentity.md)

## See Also

### Anchoring components

- [AnchoringComponent](realitykit/anchoringcomponent.md)
- [AnchoringComponent.Target](realitykit/anchoringcomponent/target-swift.enum.md)
- [AnchoringComponent.TrackingMode](realitykit/anchoringcomponent/trackingmode-swift.struct.md)
- [ARKitAnchorComponent](realitykit/arkitanchorcomponent.md)
- [AnchorEntity](realitykit/anchorentity.md)
