init(data:contentType:)
Declaration
init(data: Data, contentType: UTType)Parameters
- data:
The data content of an html preview
- contentType:
The UTType of the attachment for an html preview
Discussion
Create an attachment for html previews by providing the data and mime type of the attachment.