---
title: CVAttachmentContainer
framework: corevideo
role: symbol
role_heading: Structure
path: corevideo/cvattachmentcontainer
---

# CVAttachmentContainer

Provides storage for buffer attachments independent of the buffer lifetime

## Declaration

```swift
@dynamicMemberLookup struct CVAttachmentContainer<Keys> where Keys : CVAttachmentKeyDefinitions
```

## Overview

Overview This object can be used to hold a copy of all buffer attachments. The attachment values can be accessed as properties of this object similar to CVAttachmentAccess.

## Topics

### Initializers

- [init(propagated:nonPropagated:)](corevideo/cvattachmentcontainer/init(propagated:nonpropagated:).md)

### Instance Methods

- [attachedMode(of:)](corevideo/cvattachmentcontainer/attachedmode(of:)-4qvrl.md)
- [attachedMode(of:)](corevideo/cvattachmentcontainer/attachedmode(of:)-7vger.md)
- [attachedMode(of:)](corevideo/cvattachmentcontainer/attachedmode(of:)-p6ms.md)
- [removeAll()](corevideo/cvattachmentcontainer/removeall().md)
- [update(from:)](corevideo/cvattachmentcontainer/update(from:).md)

### Subscripts

- [subscript(_:as:)](corevideo/cvattachmentcontainer/subscript(_:as:).md)
- [subscript(dynamicMember:)](corevideo/cvattachmentcontainer/subscript(dynamicmember:)-3qlmo.md)
- [subscript(dynamicMember:)](corevideo/cvattachmentcontainer/subscript(dynamicmember:)-8zxr1.md)
- [subscript(dynamicMember:)](corevideo/cvattachmentcontainer/subscript(dynamicmember:)-fjtq.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Attachment system (Swift)

- [CVAttachmentAccess](corevideo/cvattachmentaccess.md)
- [CVAttachmentRawValue](corevideo/cvattachmentrawvalue.md)
- [CVAttachmentKeyDefinition](corevideo/cvattachmentkeydefinition.md)
- [CVAttachmentKeyDefinitionWithDefault](corevideo/cvattachmentkeydefinitionwithdefault.md)
- [CVAttachmentCompositeKeyDefinition](corevideo/cvattachmentcompositekeydefinition.md)
- [CVAttachmentModePreferenceShouldPropagate](corevideo/cvattachmentmodepreferenceshouldpropagate.md)
- [CVAttachmentModePreferenceShouldNotPropagate](corevideo/cvattachmentmodepreferenceshouldnotpropagate.md)
