<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMAttachmentBearerAttachments",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "s:9CoreMedia29CMAttachmentBearerAttachmentsV"
  },
  "title" : "CMAttachmentBearerAttachments"
}
-->

# CMAttachmentBearerAttachments

A structure that contains attachments.

```
struct CMAttachmentBearerAttachments
```

## Topics

### Inspecting Attachments

[`var propagated: [String : Any]`](/documentation/CoreMedia/CMAttachmentBearerAttachments/propagated)

A dictionary of attachments to copy when propagating attachments from one object to another.

[`var nonPropagated: [String : Any]`](/documentation/CoreMedia/CMAttachmentBearerAttachments/nonPropagated)

A dictionary of attachments to not copy when propagating attachments from one object to another.

### Accessing Attachments

[`subscript(String) -> CMAttachmentBearerAttachments.Value?`](/documentation/CoreMedia/CMAttachmentBearerAttachments/subscript(_:)-8uau0)

Gets the value associated with the specified attachment.

[`subscript(CMSampleBuffer.AttachmentKey) -> CMAttachmentBearerAttachments.Value?`](/documentation/CoreMedia/CMAttachmentBearerAttachments/subscript(_:)-74jgw)

Gets the value associated with the specified attachment key.

[`enum Value`](/documentation/CoreMedia/CMAttachmentBearerAttachments/Value)

An enumeration of attachment values.

### Managing Attachments

[`func merge([String : Any], mode: CMAttachmentBearerAttachments.Mode)`](/documentation/CoreMedia/CMAttachmentBearerAttachments/merge(_:mode:))

Sets a collection of attachments on the object.

[`enum Mode`](/documentation/CoreMedia/CMAttachmentBearerAttachments/Mode)

An enumeration that defines the available attachment modes.

[`func removeAll()`](/documentation/CoreMedia/CMAttachmentBearerAttachments/removeAll())

Removes all attachments from this object.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)