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

# init(named:bundle:)

Loads and displays a model by name, by searching through the specified
`Foundation/Bundle`.

```
nonisolated init(named name: String, bundle: Bundle? = nil) where Content == ResolvedModel3D
```

## Parameters

`name`

The name of the USD or Reality file to display.

`bundle`

The Bundle used to look up the model by name. If not
provided, defaults to the app’s main bundle.

## Discussion

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

```swift
Model3D(named: "Robot-Drummer")
```

If you want to customize the placeholder or apply
[`ResolvedModel3D`](/documentation/RealityKit/ResolvedModel3D)-specific modifiers — like
`ResolvedModel3D/resizable()` — to the loaded model, use the
[`init(named:bundle:content:placeholder:)`](/documentation/RealityKit/Model3D/init(named:bundle: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)