Contents

contentType

The content type of the source data for the thumbnail request.

Declaration

var contentType: UTType! { get set }

Discussion

Quick Look Thumbnailing uses the content type of the source data to determine the provider of the thumbnail and the icon styles it applies when you request iconMode.

If you don’t set this property, Quick Look Thumbnailing derives the content from the file extension. When the file doesn’t have a meaningful extension and you know the content type, set the property directly.

See Also

Describing the Requested Thumbnail