<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICalendarSelectionSingleDate",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICalendarSelectionSingleDate"
  },
  "title" : "UICalendarSelectionSingleDate"
}
-->

# UICalendarSelectionSingleDate

An object that tracks a date the user selects from a calendar view.

```
@MainActor class UICalendarSelectionSingleDate
```

## Topics

### Creating a single date selection

[`init(delegate: (any UICalendarSelectionSingleDateDelegate)?)`](/documentation/UIKit/UICalendarSelectionSingleDate/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.

### Setting the selection delegate

[`var delegate: (any UICalendarSelectionSingleDateDelegate)?`](/documentation/UIKit/UICalendarSelectionSingleDate/delegate)

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

[`protocol UICalendarSelectionSingleDateDelegate`](/documentation/UIKit/UICalendarSelectionSingleDateDelegate)

A set of methods you implement to provide selectable dates and handle changes to the selection of a single date.

### Updating the selected date

[`var selectedDate: DateComponents?`](/documentation/UIKit/UICalendarSelectionSingleDate/selectedDate)

A date component object that represents a selected date in a calendar view.

[`func setSelected(DateComponents?, animated: Bool)`](/documentation/UIKit/UICalendarSelectionSingleDate/setSelected(_:animated:))

Updates the date component object that represents a selected date in a calendar view, with an option to animate the change.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

### Inherits From

[`UICalendarSelection`](/documentation/UIKit/UICalendarSelection)

---

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)