Contents

setSelected(_:animated:)

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

Declaration

func setSelected(_ selectedDate: DateComponents?, animated: Bool)

Parameters

  • selectedDate:

    A date component object that represents a date to select in a calendar view.

  • animated:

    A Boolean value that indicates whether the calendar view should animate changing the selected date.

See Also

Updating the selected date