---
title: CGImageMetadataTag
framework: imageio
role: symbol
role_heading: Class
path: imageio/cgimagemetadatatag
---

# CGImageMetadataTag

An immutable type that contains information about a single piece of image metadata.

## Declaration

```swift
class CGImageMetadataTag
```

## Overview

Overview Each CGImageMetadataTag opaque type contains a single EXIF, IPTC, or XMP property. The namespace, prefix, name, type, and value of the tag identify different portions of the tag’s content. For example, the namespace specifies whether the tag is part of the EXIF metadata or a different set of metadata. You retrieve existing metadata tags from an CGImageMetadata opaque type. You may also create new tags and add them to a CGMutableImageMetadata type, before you assign the updated metadata to an image.

## Topics

### Creating a Metadata Tag

- [CGImageMetadataTagCreate(_:_:_:_:_:)](imageio/cgimagemetadatatagcreate(_:_:_:_:_:).md)

### Getting the Attributes of the Tag

- [CGImageMetadataTagCopyNamespace(_:)](imageio/cgimagemetadatatagcopynamespace(_:).md)
- [CGImageMetadataTagCopyPrefix(_:)](imageio/cgimagemetadatatagcopyprefix(_:).md)
- [CGImageMetadataTagCopyName(_:)](imageio/cgimagemetadatatagcopyname(_:).md)
- [CGImageMetadataTagCopyValue(_:)](imageio/cgimagemetadatatagcopyvalue(_:).md)
- [CGImageMetadataTagCopyQualifiers(_:)](imageio/cgimagemetadatatagcopyqualifiers(_:).md)

### Getting the Tag Type

- [CGImageMetadataTagGetType(_:)](imageio/cgimagemetadatataggettype(_:).md)
- [CGImageMetadataType](imageio/cgimagemetadatatype.md)

### Getting the Core Foundation Type

- [CGImageMetadataTagGetTypeID()](imageio/cgimagemetadatataggettypeid().md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### XMP Metadata

- [CGImageMetadata](imageio/cgimagemetadata.md)
- [CGMutableImageMetadata](imageio/cgmutableimagemetadata.md)
- [XMP Namespaces and Prefixes](imageio/xmp-namespaces-and-prefixes.md)
- [kCFErrorDomainCGImageMetadata](imageio/kcferrordomaincgimagemetadata.md)
- [CGImageMetadataErrors](imageio/cgimagemetadataerrors.md)
