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
UTTypeidentifying how to interpretcontent. - content:
A raw binary representation of the entry.
- metadata:
Metadata pertinent to this entry.