Initializer

init(image:)

Initializes a media item artwork instance with a full-size image.

Declaration

convenience init(image: UIImage)

Parameters

image

The image to use to initialize the media item artwork instance.

Discussion

This method assumes that the crop rectangle of the image matches the bounds of the image, as defined by the image’s size in points. That is, this method assumes the image you supply is tightly cropped.

See Also

Deprecated Methods and Properties

var imageCropRect: CGRect

The bounds, in points, of the content area for the full size image associated with the media item artwork.