---
title: "metadata(forFormat:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmutablemovietrack/metadata(forformat:)"
---

# metadata(forFormat:)

Returns metadata items that a track contains for the specified format.

## Declaration

```swift
func metadata(forFormat format: AVMetadataFormat) -> [AVMetadataItem]
```

## Parameters

- `format`: The format of the metadata items to retrieve.

## Return Value

Return Value An array of metadata items matching the specified format, or an empty array if none are found.

## See Also

### Accessing metadata

- [metadata](avfoundation/avmutablemovietrack/metadata.md)
- [commonMetadata](avfoundation/avmutablemovietrack/commonmetadata.md)
- [availableMetadataFormats](avfoundation/avmutablemovietrack/availablemetadataformats.md)
