---
title: CVAttachmentKeyDefinitionWithDefault
framework: corevideo
role: symbol
role_heading: Structure
path: corevideo/cvattachmentkeydefinitionwithdefault
---

# CVAttachmentKeyDefinitionWithDefault

Associates a raw attachment key with a default value and preferred propagation mode.

## Declaration

```swift
struct CVAttachmentKeyDefinitionWithDefault<ModePreference, Value> where ModePreference : CVAttachmentModePreference, Value : CVAttachmentValueRepresentable, Value : Equatable, Value : Sendable
```

## Topics

### Initializers

- [init(_:default:)](corevideo/cvattachmentkeydefinitionwithdefault/init(_:default:).md)

### Instance Properties

- [defaultValue](corevideo/cvattachmentkeydefinitionwithdefault/defaultvalue.md)
- [rawValue](corevideo/cvattachmentkeydefinitionwithdefault/rawvalue.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Attachment system (Swift)

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