<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnyAttachmentContent/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI20AnyAttachmentContentVyACxcAA0fG0Rzlufc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates an instance that type-erases [`AttachmentContent`](/documentation/RealityKit/AttachmentContent).

```
@MainActor @preconcurrency init<Content>(_ content: Content) where Content : AttachmentContent
```

---

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)