<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ImagePresentationComponent/Spatial3DImage/init(contentsOf:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation26ImagePresentationComponentV14Spatial3DImageC10contentsOfAE0B03URLV_tYaKcfc"
  },
  "title" : "init(contentsOf:)"
}
-->

# init(contentsOf:)

Initializes a spatial 3D image from the contents of an image file.

```
convenience init(contentsOf url: URL) async throws
```

## Discussion> Note: The newly created spatial 3D image is not yet in a generated state.

---

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)