didDeselect not called
(Required) Version Number: latest version
Description
I need a single selection calendar. before it's works fine once I update a pod. i facing problem kindly do needfully
Steps To Reproduce
calendarView.allowsMultipleSelection = false
calendarView.allowsRangedSelection = false
Expected Behavior
Additional Context
because you need to rename your didSelect and didDeselect funcitons. Check here to see all the functions you need to rename in the in migration guide
closing issue. Do let me know if youre still stuck
yes already changed still it's not calling
func calendar(_ calendar: JTACMonthView, didDeselectDate date: Date, cell: JTACDayCell?, cellState: CellState, indexPath: IndexPath) {
if isMultiSelection {
calendar.deselectAllDates(triggerSelectionDelegate: false)
selectedDates.removeAll()
if !isRangeSelected {
checkIn = date
} else {
checkIn = date
checkOut = nil
isRangeSelected = false
}
if let checkIn_date = checkIn {
lbl_return_date.text = "dd MMM"
lbl_return_day.text = "EEEE"
dateFormatter.dateFormat = "dd MMM"
lbl_departure_date.text = dateFormatter.string(from: date)
dateFormatter.dateFormat = "EEEE"
lbl_departure_day.text = dateFormatter.string(from: date)
calendar.selectDates([checkIn_date], triggerSelectionDelegate:false, keepSelectionIfMultiSelectionAllowed: true)
}
} else {
configurationCell(cell: cell, state: cellState)
}
}
are you able to provide me with a sample code? [email protected]
i'll be able to take a look over the weekend.
closing issue again until user responds. Setting the awaiting-response flag.