---
title: "attachedMode(of:)"
framework: corevideo
role: symbol
role_heading: Instance Method
path: "corevideo/cvattachmentaccess/attachedmode(of:)-m49"
---

# attachedMode(of:)

Returns mode of an attached key without retriving value.

## Declaration

```swift
func attachedMode(of key: String) -> CVAttachmentMode?
```

## Discussion

Discussion This function can be used to check for the presence of a specific key without converting it’s value. Returns nil if the key is not attached.
