---
title: "init(items:start:end:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avdaterangemetadatagroup/init(items:start:end:)"
---

# init(items:start:end:)

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

## Declaration

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

## Parameters

- `items`: The array of doc://com.apple.avfoundation/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

Return Value A new instance of AVDateRangeMetadataGroup.

## Discussion

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.
