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

# UICalendarSelectionMultiDate

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

```
@MainActor class UICalendarSelectionMultiDate
```

## Topics

### Creating a multiple date selection

[`init(delegate: (any UICalendarSelectionMultiDateDelegate)?)`](/documentation/UIKit/UICalendarSelectionMultiDate/init(delegate:))

Creates an object that tracks multiple dates 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 UICalendarSelectionMultiDateDelegate)?`](/documentation/UIKit/UICalendarSelectionMultiDate/delegate)

A delegate object that a calendar view asks for selectable dates and informs of changes to the selection of multiple dates.

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

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

### Updating the selected dates

[`var selectedDates: [DateComponents]`](/documentation/UIKit/UICalendarSelectionMultiDate/selectedDates)

An array of date component objects that represent selected dates in a calendar view.

[`func setSelectedDates([DateComponents], animated: Bool)`](/documentation/UIKit/UICalendarSelectionMultiDate/setSelectedDates(_:animated:))

Updates the array of date component objects that represent selected dates in a calendar view, with an option to animate the change.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

### 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)