<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ViewAttachmentComponent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI23ViewAttachmentComponentV"
  },
  "title" : "ViewAttachmentComponent"
}
-->

# ViewAttachmentComponent

A component containing additional information about a view attachment
entity provided  via the [`entity(for:)`](/documentation/RealityKit/RealityViewAttachments/entity(for:))
function.

```
struct ViewAttachmentComponent
```

## Relationships

### Conforms To

[`Identifiable`](/documentation/Swift/Identifiable)

[`Component`](/documentation/RealityKit/Component)

[`TransientComponent`](/documentation/RealityKit/TransientComponent)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)