init(mimeType:conformingTo:)
Creates a type based on a MIME type and a supertype that it conforms to.
Declaration
convenience init?(mimeType: String, conformingTo supertype: UTType)Parameters
- mimeType:
A string that represents the MIME type.
- supertype:
Another Uttype Swift.struct instance that the resulting type must conform to; for example, Uttypedata.
Discussion
This initializer returns nil if the system doesn’t know the MIME type.