init(data:)
Creates an attachment containing the provided data payload.
Declaration
convenience init(data payload: Data)Parameters
- payload:
The data to wrap as an attachment.
Discussion
Creates an attachment with a uniformTypeIdentifier of "``public.data".