Contents

aspectRatioThumbnail()

Returns an aspect ratio thumbnail of the asset.

Declaration

func aspectRatioThumbnail() -> Unmanaged<CGImage>!

Return Value

An aspect ratio thumbnail of the asset.

Discussion

Returns a CGImage with an aspect ratio thumbnail of the asset. The size of the thumbnail is the appropriate size for the platform, and in the correct orientation.

This method returns NULL for assets from a shared photo stream that are not yet available locally. If the asset becomes available in the future, an ALAssetsLibraryChangedNotification notification is posted.

See Also

Accessing Representations