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

# init(url:)

Loads and displays a model from the specified URL.

```
nonisolated init(url: URL) where Content == ResolvedModel3D
```

## Parameters

`url`

The URL of the model to display.

## Discussion

Until the model loads, SwiftUI displays a default placeholder. When
the load operation completes successfully, SwiftUI updates the
view to show the loaded model. If the operation fails, SwiftUI
continues to display the placeholder. The following example loads
and displays a model from an example server:

```swift
Model3D(url: URL(string: "https://example.com/robot.usdz")!)
```

If you want to customize the placeholder or apply [`Model3D`](/documentation/RealityKit/Model3D)-specific
modifiers — like `ResolvedModel3D/resizable()` —
to the loaded model, use the [`init(url:content:placeholder:)`](/documentation/RealityKit/Model3D/init(url:content:placeholder:))
initializer instead.

---

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)