<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLAsset/init(url:)-1f4ym",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLAsset(im)initWithURL:"
  },
  "title" : "init(url:)"
}
-->

# init(url:)

Initializes an asset from the file at the specified URL.

```
init(url URL: URL)
```

## Parameters

`URL`

A URL specifying the location an asset file.

## Return Value

A new asset object.

## Discussion

Use the [`canImportFileExtension(_:)`](/documentation/ModelIO/MDLAsset/canImportFileExtension(_:)) method to determine whether Model I/O  can import an asset.

---

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)