Contents

init(mimeType:)

Creates a type based on a MIME type.

Declaration

convenience init?(mimeType: String)

Parameters

  • mimeType:

    A string that represents the MIME type.

Discussion

This initializer returns nil if the system doesn’t know the MIME type.

See Also

Creating a type