---
title: "init(url:options:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avurlasset/init(url:options:)-2x8uu"
---

# init(url:options:)

Creates an asset that models the media resource at the specified URL.

## Declaration

```swift
init(url URL: URL, options: [String : Any]? = nil)
```

## Parameters

- `URL`: A URL that references the media for the asset to model.
- `options`: A dictionary that contains options used to customize the initialization of the asset. For supported keys and values, see doc://com.apple.avfoundation/documentation/AVFoundation/initialization-options.

## Return Value

Return Value An asset that models the media resource found at URL.

## See Also

### Creating an asset

- [init(url:)](avfoundation/avurlasset/init(url:).md)
- [Initialization options](avfoundation/avurlasset-initialization-options.md)
