---
title: "init(_:width:height:)"
framework: musickit
role: symbol
role_heading: Initializer
path: "musickit/artworkimage/init(_:width:height:)"
---

# init(_:width:height:)

Creates an instance with a specified width and height.

## Declaration

```swift
nonisolated init(_ artwork: Artwork, width: CGFloat, height: CGFloat)
```

## Discussion

Discussion This initializer derives the URL for loading the artwork image from the Artwork instance and the specified sizing parameters, as well as the display scale for the current environment. The loaded image and placeholder have constrained frames from these sizing parameters.
