Instance Method

image(at:)

Returns the artwork image for an item at the given size.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
func image(at size: CGSize) -> UIImage?
macOS
func image(at size: CGSize) -> NSImage?

Parameters

size

The size, in points, for the new UIImage object.

Return Value

The artwork at the requested size.

Discussion

The returned image is the smallest available image that is at least as large as the requested size.

See Also

Using a Media Item Image

var bounds: CGRect

The maximum size, in points, of the image associated with the media item artwork.