setSelectedDates(_:animated:)
Updates the array of date component objects that represent selected dates in a calendar view, with an option to animate the change.
Declaration
func setSelectedDates(_ selectedDates: [DateComponents], animated: Bool)Parameters
- selectedDates:
An array of date component objects that represent dates to select in a calendar view.
- animated:
A Boolean value that indicates whether the calendar view should animate changing the selected dates.