---
title: ViewAttachmentEntity
framework: realitykit
role: symbol
role_heading: Class
path: realitykit/viewattachmententity
---

# ViewAttachmentEntity

An entity that has a view attachment.

## Declaration

```swift
@MainActor @preconcurrency class ViewAttachmentEntity
```

## Topics

### Instance Properties

- [attachment](realitykit/viewattachmententity/attachment.md)

## Relationships

### Inherits From

- [Entity](realitykit/entity.md)

### Conforms To

- [CoordinateSpace3D](spatial/coordinatespace3d.md)
- [CoordinateSpace3DFloat](spatial/coordinatespace3dfloat.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [EventSource](realitykit/eventsource.md)
- [HasHierarchy](realitykit/hashierarchy.md)
- [HasSynchronization](realitykit/hassynchronization.md)
- [HasTransform](realitykit/hastransform.md)
- [Hashable](swift/hashable.md)
- [Identifiable](swift/identifiable.md)
- [Observable](observation/observable.md)
- [RealityCoordinateSpace](realitykit/realitycoordinatespace.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### SwiftUI view attachments

- [RealityViewAttachmentBuilderContent](realitykit/realityviewattachmentbuildercontent.md)
- [Attachment](realitykit/attachment.md)
- [RealityViewAttachments](realitykit/realityviewattachments.md)
- [ViewAttachmentComponent](realitykit/viewattachmentcomponent.md)
- [PresentationComponent](realitykit/presentationcomponent.md)
- [TextComponent](realitykit/textcomponent.md)
