Contents

preferredMIMEType

The preferred MIME type for the type.

Declaration

var preferredMIMEType: String? { get }

Discussion

If available, the preferred (first available) tag of class mimeType. If not nil, the value of this property is the best available MIME type value for this type.

The value of this property is equivalent to, but more efficient than:

type.tags[.mimeType]?.first

See Also

Obtaining tags