---
title: kCGImageMetadataEnumerateRecursively
framework: imageio
role: symbol
role_heading: Global Variable
path: imageio/kcgimagemetadataenumeraterecursively
---

# kCGImageMetadataEnumerateRecursively

An option to enumerate recursively through a set of metadata tags.

## Declaration

```swift
let kCGImageMetadataEnumerateRecursively: CFString
```

## Discussion

Discussion The value of this key is a CFBoolean. Set the value to kOSBooleanTrue to enumerate all tags recursively. Set the value to kCFBooleanFalse to enumerate only the direct children of the root path you specify. When you call CGImageMetadataEnumerateTagsUsingBlock(_:_:_:_:), include this option if you want the enumeration behavior to search recursively through the available tags. If you don’t specify this key, the function behaves as if the value is false.

## See Also

### Enumerating the Metadata Tags

- [CGImageMetadataEnumerateTagsUsingBlock(_:_:_:_:)](imageio/cgimagemetadataenumeratetagsusingblock(_:_:_:_:).md)
- [CGImageMetadataTagBlock](imageio/cgimagemetadatatagblock.md)
