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

# init(items:start:end:)

Initializes an instance of `AVDateRangeMetadataGroup` with a collection of metadata items.

```
init(items: [AVMetadataItem], start startDate: Date, end endDate: Date?)
```

## Parameters

`items`

The array of [`AVMetadataItem`](/documentation/AVFoundation/AVMetadataItem) instances to associate with this group.

`startDate`

The starting date for the group of metadata items.

`endDate`

The ending date for the group of metadata items.

## Return Value

A new instance of `AVDateRangeMetadataGroup`.

## Discussion

Creates a new instance of `AVDateRangeMetadataGroup` with the specified collection of metadata items. The `startDate` and `endDate` arguments define the effective time range on the timeline to which the metadata applies.

---

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)