Contents

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 UTType identifying how to interpret content.

  • content:

    A raw binary representation of the attachment.

  • metadata:

    Metadata pertinent to this attachment.