<!--
{
  "availability" : [
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ReferenceObject/init(from:configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit15ReferenceObjectV4from13configurationAC10Foundation3URLV_AC13ConfigurationVtYaKcfc"
  },
  "title" : "init(from:configuration:)"
}
-->

# init(from:configuration:)

Initializes a reference object from a URL, with reference object configuration.

```
init(from url: URL, configuration: ReferenceObject.Configuration) async throws
```

## Parameters

`url`

Local path to the reference object model.

`configuration`

Configuration to use for tracking this object.

## Discussion> Throws: `ObjectTrackingProvider.Error`

---

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)