---
title: AnchorStateEvents.DidFailToAnchor
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/anchorstateevents/didfailtoanchor
---

# AnchorStateEvents.DidFailToAnchor

Event that triggers on an entity when pending anchor encounters an error.

## Declaration

```swift
struct DidFailToAnchor
```

## Topics

### Instance Properties

- [entity](realitykit/anchorstateevents/didfailtoanchor/entity.md)
- [reason](realitykit/anchorstateevents/didfailtoanchor/reason-swift.property.md)

### Enumerations

- [AnchorStateEvents.DidFailToAnchor.Reason](realitykit/anchorstateevents/didfailtoanchor/reason-swift.enum.md)

## Relationships

### Conforms To

- [Event](realitykit/event.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
