---
title: "init(name:in:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/anchoringcomponent/objectanchoringsource/init(name:in:)"
---

# init(name:in:)

Creates the object anchoring source by reference object file asset with provided name and bundle.

## Declaration

```swift
init(name: String, in bundle: Bundle = .main)
```

## Parameters

- `name`: The name of the reference object in the bundle.
- `bundle`: The bundle to load from.
