---
title: "CMPropagateAttachments(_:destination:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmpropagateattachments(_:destination:)"
---

# CMPropagateAttachments(_:destination:)

Copies all propagable attachments from one attachment bearer object to another.

## Declaration

```swift
func CMPropagateAttachments(_ source: CMAttachmentBearer, destination: CMAttachmentBearer)
```

## Parameters

- `source`: CMAttachmentBearer to copy attachments from.
- `destination`: CMAttachmentBearer to copy attachments to.

## Discussion

Discussion CMPropagateAttachments is a convenience call that copies all attachments with a mode of kCMAttachmentMode_ShouldPropagate from one buffer to another.  Given a CVBuffer, CMPropagateAttachments is equivalent to CVBufferPropagateAttachments.

## See Also

### Processing Attachments

- [CMGetAttachment(_:key:attachmentModeOut:)](coremedia/cmgetattachment(_:key:attachmentmodeout:).md)
- [CMCopyDictionaryOfAttachments(allocator:target:attachmentMode:)](coremedia/cmcopydictionaryofattachments(allocator:target:attachmentmode:).md)
- [CMSetAttachment(_:key:value:attachmentMode:)](coremedia/cmsetattachment(_:key:value:attachmentmode:).md)
- [CMSetAttachments(_:attachments:attachmentMode:)](coremedia/cmsetattachments(_:attachments:attachmentmode:).md)
- [CMRemoveAttachment(_:key:)](coremedia/cmremoveattachment(_:key:).md)
- [CMRemoveAllAttachments(_:)](coremedia/cmremoveallattachments(_:).md)
