---
title: "artwork(url:contentType:size:)"
framework: avkit
role: symbol
role_heading: Type Method
path: "avkit/avinterfacealbumartwork/artwork(url:contenttype:size:)"
---

# artwork(url:contentType:size:)

Creates an artwork instance that references an image at the given URL.

## Declaration

```swift
class func artwork(url: URL, contentType type: UTType, size: CGSize) -> AVInterfaceURLAlbumArtwork
```

## Parameters

- `url`: URL pointing to the artwork image resource.
- `type`: The uniform type identifier for the image data.
- `size`: The pixel dimensions of the artwork image.
