Contents

attachedMode(of:)

Returns the propagation mode of a stored attachment you identify by its raw key string, without retrieving the value.

Declaration

func attachedMode(of key: String) -> CVAttachmentMode?

Parameters

  • key:

    The raw string that identifies the attachment.

Return Value

The propagation mode of the attachment, or nil if the key isn’t attached.

Discussion

Use this method to check for the presence of a specific key without converting its value.

This overload takes the key as a string, which is how you reach an attachment whose key isn’t declared as a property of the key definitions type, such as a custom key your app attaches. To pass a declared key, use its rawValue.