Instance Property

imageAsset

Returns a reference to the image asset (if any) associated with the image.

Declaration

var imageAsset: UIImageAsset? { get }

Discussion

For images loaded from an image assets, this property contains an image asset object that you can use to fetch the other variants of the image. If you did not create the image object using an image asset, the value of this property is nil. This property is always nil for images created using a ciImage object.

See Also

Getting the Image Data

var cgImage: CGImage?

The underlying Quartz image data.

var ciImage: CIImage?

The underlying Core Image data.

var images: [UIImage]?

For an animated image, this property holds the complete array of UIImage objects that make up the animation.