---
title: CVAttachmentModePreference
framework: corevideo
role: symbol
role_heading: Protocol
path: corevideo/cvattachmentmodepreference
---

# CVAttachmentModePreference

Defines preferred mode for an attachment key.

## Declaration

```swift
protocol CVAttachmentModePreference : Sendable
```

## Overview

Overview This protocol is used to identify the mode preferences in generic context. You should use one of the CVAttachmentModePreferenceShouldPropagate or CVAttachmentModePreferenceShouldNotPropagate instead of defining a custom conformance to this protocol.

## Topics

### Type Properties

- [preferredMode](corevideo/cvattachmentmodepreference/preferredmode.md)

## Relationships

### Inherits From

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

### Conforming Types

- [CVAttachmentModePreferenceShouldNotPropagate](corevideo/cvattachmentmodepreferenceshouldnotpropagate.md)
- [CVAttachmentModePreferenceShouldPropagate](corevideo/cvattachmentmodepreferenceshouldpropagate.md)

## See Also

### Protocols

- [CVBufferRepresentable](corevideo/cvbufferrepresentable.md)
- [CVAttachmentKeyDefinitions](corevideo/cvattachmentkeydefinitions.md)
- [CVAttachmentValueRepresentable](corevideo/cvattachmentvaluerepresentable.md)
