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

# init(_:selection:)

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

## Declaration

```swift
nonisolated init(_ titleKey: LocalizedStringKey, selection: Binding<Set<DateComponents>>)
```

## Parameters

- `titleKey`: The key for the localized title of self, describing its purpose.
- `selection`: The date values being displayed and selected.

## See Also

### Picking dates

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