Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help setting up multiple week selection on single cell click event . #397

Open
Ilaxoprth opened this issue Oct 4, 2023 · 0 comments

Comments

@Ilaxoprth
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant