---
title: "init(url:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlmodelasset/init(url:)-43988"
---

# init(url:)

Constructs a ModelAsset from a compiled model URL.

## Declaration

```swift
convenience init(url compiledModelURL: URL) throws
```

## Parameters

- `compiledModelURL`: Location on the disk where the model asset is present.

## Return Value

Return Value A model asset or nil if there is an error.

## See Also

### Creating a model asset

- [init(specification:)](coreml/mlmodelasset/init(specification:).md)
- [init(specification:blobMapping:)](coreml/mlmodelasset/init(specification:blobmapping:).md)
