<!--
{
  "availability" : [
    "iOS: 4.3.0 -",
    "iPadOS: 4.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVTimedMetadataGroup/init(items:timeRange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVTimedMetadataGroup(im)initWithItems:timeRange:"
  },
  "title" : "init(items:timeRange:)"
}
-->

# init(items:timeRange:)

Creates a timed metadata group initialized with the given metadata items.

```
init(items: [AVMetadataItem], timeRange: CMTimeRange)
```

## Parameters

`items`

An array of [`AVMetadataItem`](/documentation/AVFoundation/AVMetadataItem) objects.

`timeRange`

The time range of the metadata contained in `items`.

## Return Value

A metadata group initialized with `items`.

## Discussion

---

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)