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

# init(_:height:)

Creates an instance with a specified height.

## Declaration

```swift
nonisolated init(_ artwork: Artwork, 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. If you provide the height only, the artwork image calculates the width dimension as a proportional length according to the aspect ratio of the artwork.
