---
title: "init(selection:label:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/multidatepicker/init(selection:label:)"
---

# init(selection:label:)

Creates an instance that selects multiple dates with an unbounded range.

## Declaration

```swift
nonisolated init(selection: Binding<Set<DateComponents>>, @ContentBuilder label: () -> Label)
```

## Parameters

- `selection`: The date values being displayed and selected.
- `label`: A view that describes the use of the dates.

## See Also

### Picking dates

- [init(_:selection:)](swiftui/multidatepicker/init(_:selection:).md)
