Question:
I have a CalendarCollectionView, which shows up as monthly calendar similar like iOS Calendar. So on that Calendar i have to show the PreselectedPeriod dates which user has already selected before. But i also need to show a label as a count on these cells (let’s assume if user has Preselected values as 23,24,25,26 so on these dateCell user should also see 1,2,3,4 as right corner label respectively). How can i do that?
Answer:
If you have already selected dates you can use the following logic with little modifications according to your requirement.You can declare the helper variables
cellForIntemAt
looks like this.
Note: Here I have used the indexPath
as the calendar date
If you have better answer, please add a comment about this, thank you!