<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTaggedBuffer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "s:9CoreMedia14CMTaggedBufferV"
  },
  "title" : "CMTaggedBuffer"
}
-->

# CMTaggedBuffer

An instance of a media buffer containing metadata tags.

```
struct CMTaggedBuffer
```

## Topics

### Creating Tagged Buffers

[`init(tags: [CMTag], buffer: CMTaggedBuffer.Buffer)`](/documentation/CoreMedia/CMTaggedBuffer/init(tags:buffer:))

Creates a new tagged buffer from tags and an existing media buffer.

[`init(tags: [CMTag], sampleBuffer: CMSampleBuffer)`](/documentation/CoreMedia/CMTaggedBuffer/init(tags:sampleBuffer:))

Creates a new tagged buffer from tags and an existing sample buffer.

[`init(tags: [CMTag], pixelBuffer: CVPixelBuffer)`](/documentation/CoreMedia/CMTaggedBuffer/init(tags:pixelBuffer:))

Creates a new tagged buffer from tags and an existing pixel buffer.

### Inspecting Data

[`let tags: [CMTag]`](/documentation/CoreMedia/CMTaggedBuffer/tags)

The tags for this buffer.

[`let buffer: CMTaggedBuffer.Buffer`](/documentation/CoreMedia/CMTaggedBuffer/buffer-swift.property)

The underlying buffer containing media data.

### Buffer Wrappers

[`enum Buffer`](/documentation/CoreMedia/CMTaggedBuffer/Buffer-swift.enum)

A wrapper type for the underlying buffer of a tagged buffer.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)