CMRemoveAllAttachments(_:)
Removes all attachments from an attachment bearer object.
Declaration
func CMRemoveAllAttachments(_ target: CMAttachmentBearer)Parameters
- target:
The
CMAttachmentBearerwhose attachment you want to remove.
Discussion
While CMRemoveAttachment removes a specific attachment identified by a key, CMRemoveAllAttachments removes all attachments of a CMAttachmentBearer and decrements their retain counts. Given a CVBuffer, CMRemoveAllAttachments is equivalent to CVBufferRemoveAllAttachments.