---
title: "init(delegate:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uicalendarselectionsingledate/init(delegate:)"
---

# init(delegate:)

Creates an object that tracks a date a user selects from a calendar view, with an optional delegate to manage selectable dates and selection changes.

## Declaration

```swift
init(delegate: (any UICalendarSelectionSingleDateDelegate)?)
```

## Parameters

- `delegate`: A delegate object that a calendar view asks about selectable dates, and informs of changes to the selection of a single date.
