Let's say user selects specific day on calendar and cell shows selection view like in tutorial. How can I deselect this cell on second tap?
Is it even possible? I'm not sure but I guess that UserInteractionFunctions.swift:396 has some logic that blocks deselection behaviour.
This calendar operates much like a UITableView.
Have you tried enabling multi selection?
calendarView.allowsMultipleSelection = true
This will allow you to select and deselect values.
Thanks for quick response! It's partly what I need. How can I deselect all other dates when user selects some specific date?
Ok, now I get it. In didSelectDate:
calendar.selectDates(calendar.selectedDates.filter({ $0 != date }))
Most helpful comment
This calendar operates much like a UITableView.
Have you tried enabling multi selection?
This will allow you to select and deselect values.