---
title: CGImageMetadataTagBlock
framework: imageio
role: symbol
role_heading: Type Alias
path: imageio/cgimagemetadatatagblock
---

# CGImageMetadataTagBlock

The block to execute when enumerating the tags of a metadata object.

## Declaration

```swift
typealias CGImageMetadataTagBlock = (CFString, CGImageMetadataTag) -> Bool
```

## Parameters

- `path`: The full path to the tag in the metadata container.
- `tag`: The doc://com.apple.imageio/documentation/ImageIO/CGImageMetadataTag object that contains the tag information. Never modify this object from your block. If you want to change the tag, save a reference to it and make your changes later.

## Return Value

Return Value true to continue enumerating the tags, or false to stop.

## See Also

### Enumerating the Metadata Tags

- [CGImageMetadataEnumerateTagsUsingBlock(_:_:_:_:)](imageio/cgimagemetadataenumeratetagsusingblock(_:_:_:_:).md)
- [kCGImageMetadataEnumerateRecursively](imageio/kcgimagemetadataenumeraterecursively.md)
