---
title: ViewAttachmentComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/viewattachmentcomponent
---

# ViewAttachmentComponent

A component containing additional information about a view attachment entity provided  via the entity(for:) function.

## Declaration

```swift
struct ViewAttachmentComponent
```

## Topics

### Initializers

- [init(rootView:)](realitykit/viewattachmentcomponent/init(rootview:).md)

### Instance Properties

- [bounds](realitykit/viewattachmentcomponent/bounds.md)
- [id](realitykit/viewattachmentcomponent/id.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [Identifiable](swift/identifiable.md)
- [TransientComponent](realitykit/transientcomponent.md)

## See Also

### SwiftUI view attachments

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