thumbnail()
Returns a thumbnail representation of the asset.
Declaration
func thumbnail() -> Unmanaged<CGImage>!Return Value
A thumbnail representation of the asset.
Discussion
The size of the thumbnail is the appropriate for the platform. The image is returned in the correct orientation (that is, “pointing up”—you shouldn’t have to rotate the image).
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.