Need help setting up multiple week selection on single cell click event .
Ilaxoprth opened this issue · 0 comments
Hi , I have implemented all the base methods and found it a very good lib a bit confusing since haven't learned objc or had chance to seems at this rate it should be necessary .
I have to implement a functionality where if the user clicks on first monday of the week say 2nd , this depends on a set of data from api and has been coded for conditional check , the week containing day 2nd and 3 weeks following should be changing appearance. Currently i check the selection through cellState.isSelected in the cellforitem method .
if cellState.isSelected {
cell.backgroundColor = UIColor(red: 0, green: 1, blue: 0, alpha: 0.4)
}else{
cell.backgroundColor = .clear
}
So part where I am stuck is can't figure out how to change the colors of next 4 weeks or 27 days , this should be implemented in didSelectDate most probably , any guidance would be helpfull.