Contents

init(id:contentType:content:metadata:)

Creates a data entry with the content type, content, and metadata you provide.

Declaration

init(id: String = UUID().uuidString, contentType: UTType, content: Data, metadata: GeneratedContent = GeneratedContent(properties: [:]))

Parameters

  • id:

    A unique identifier for the entry.

  • contentType:

    A UTType identifying how to interpret content.

  • content:

    A raw binary representation of the entry.

  • metadata:

    Metadata pertinent to this entry.