---
title: UICalendarSelection
framework: uikit
role: symbol
role_heading: Class
path: uikit/uicalendarselection
---

# UICalendarSelection

A base object that tracks one or more dates a user selects from a calendar view.

## Declaration

```swift
@MainActor class UICalendarSelection
```

## Overview

Overview Don’t use this object directly in your calendar view to track date selection. Use the subclass UICalendarSelectionSingleDate to track a single date selection, or UICalendarSelectionMultiDate to track multiple date selections.

## Topics

### Updating selectable dates

- [updateSelectableDates()](uikit/uicalendarselection/updateselectabledates().md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [UICalendarSelectionMultiDate](uikit/uicalendarselectionmultidate.md)
- [UICalendarSelectionSingleDate](uikit/uicalendarselectionsingledate.md)
- [UICalendarSelectionWeekOfYear](uikit/uicalendarselectionweekofyear.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Handling date selections

- [selectionBehavior](uikit/uicalendarview/selectionbehavior.md)
- [UICalendarSelectionSingleDate](uikit/uicalendarselectionsingledate.md)
- [UICalendarSelectionMultiDate](uikit/uicalendarselectionmultidate.md)
- [UICalendarSelectionWeekOfYear](uikit/uicalendarselectionweekofyear.md)
