init(string:)
Creates an attachment containing the provided string.
Declaration
convenience init(string: String)Parameters
- string:
The string to wrap as an attachment.
Discussion
Creates an attachment with a uniformTypeIdentifier of "``public.plain-text".