init(archivableObject:uniformTypeIdentifier:)
Creates an attachment from an object that conforms to NSSecureCoding, with a custom UTI.
Declaration
convenience init(archivableObject object: any NSSecureCoding, uniformTypeIdentifier identifier: String)Parameters
- object:
An encodable object that conforms to Nssecurecoding.
- identifier:
A custom UTI to represent the encoded data’s type.