---
title: CMSampleBuffer.PerSampleAttachmentsDictionary
framework: coremedia
role: symbol
role_heading: Structure
path: coremedia/cmsamplebuffer/persampleattachmentsdictionary
---

# CMSampleBuffer.PerSampleAttachmentsDictionary

A structure that defines keys to identify per-sample attachments.

## Declaration

```swift
struct PerSampleAttachmentsDictionary
```

## Topics

### Specifying Keys

- [CMSampleBuffer.PerSampleAttachmentsDictionary.Key](coremedia/cmsamplebuffer/persampleattachmentsdictionary/key.md)

### Accessing Elements

- [subscript(_:)](coremedia/cmsamplebuffer/persampleattachmentsdictionary/subscript(_:).md)

## Relationships

### Conforms To

- [Sequence](swift/sequence.md)

## See Also

### Managing Attachments

- [CMSampleBuffer.AttachmentKey](coremedia/cmsamplebuffer/attachmentkey.md)
- [sampleAttachments](coremedia/cmsamplebuffer/sampleattachments-swift.property.md)
- [CMSampleBuffer.SampleAttachmentsArray](coremedia/cmsamplebuffer/sampleattachmentsarray.md)
