<!--
{
  "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/CMTag-swift.class/trackID(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Media",
      "CoreMedia"
    ],
    "preciseIdentifier" : "s:9CoreMedia5CMTagC7trackIDyAA10CMTypedTagCys5Int32VGAHFZ"
  },
  "title" : "trackID(_:)"
}
-->

# trackID(_:)

Creates a tag containing a track ID.

```
static func trackID(_ value: CMPersistentTrackID) -> CMTypedTag<CMPersistentTrackID>
```

## Parameters

`value`

The track ID for this tag.

## Return Value

A new typed tag containing a track ID of `value`.

---

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)