init(contentType:content:metadata:)
Creates a data attachment with the content type, content, and metadata you provide.
Declaration
init(contentType: UTType, content: Data, metadata: GeneratedContent = GeneratedContent(properties: [:]))Parameters
- contentType:
A
UTTypeidentifying how to interpretcontent. - content:
A raw binary representation of the attachment.
- metadata:
Metadata pertinent to this attachment.