Contents

init(_:height:)

Creates an instance with a specified height.

Declaration

nonisolated init(_ artwork: Artwork, height: CGFloat)

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.