Instance Method

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 ALAssetsLibraryChanged notification is posted.

See Also

Accessing Representations

func defaultRepresentation() -> ALAssetRepresentation!

Returns an asset representation object for the default representation.

Deprecated
func representation(forUTI: String!) -> ALAssetRepresentation!

Returns an asset representation object for a given representation UTI.

Deprecated
func thumbnail() -> Unmanaged<CGImage>!

Returns a thumbnail representation of the asset.

Deprecated