Koyomi icon indicating copy to clipboard operation
Koyomi copied to clipboard

Keep selected days highlighted after switched to next month and then back

Open paoloq opened this issue 7 years ago • 6 comments

Hi,

I encountered an issue regarding days selection. When I select a sequence of days, switch to the next month and then I get back on the initial month, my selected days are not highlighted anymore. I tried to force selection calling a select(), but unsuccessfully. Am I doing something wrong? Do you know a workaround? Thanks

paoloq avatar Sep 13 '17 14:09 paoloq

I have also issue regarding this. Can someone has workaround?

rjalkuino avatar Sep 18 '17 11:09 rjalkuino

Seams to be a problem withs this project, we cant select other month by using the method select() https://github.com/shoheiyokoyama/Koyomi/issues/36 I post some like yours. And it is a 17 days without answere. My Horrible solution is count how many month ago from current and use display(in:) to move to the month and then use select() for the day... terrible, but til now, is what work...

loverde-co avatar Sep 19 '17 19:09 loverde-co

Having the same problem. Any other workarounds?

stshelton avatar Nov 14 '17 00:11 stshelton

We can store dates using koyomi(_: didSelect: forItemAt), then using koyomi.select(dates: dates) to show them in previous or next month. Any thoughts? I have not tried this yet

HenryHengZJ avatar Dec 05 '17 10:12 HenryHengZJ

Any solution for it anyone?

ricky1550 avatar Dec 27 '17 06:12 ricky1550

I have found a temporary solution. It is a bit glitchy but works

 func selectTheProperDatesOnTheCalenderView(){
        for date in theDates{
            koyomi!.select(date: date)
        }
        self.koyomi!.reloadData()
    }

Store all of your selected dates in "theDates" array.

When the user changes the month call this function.

the Key here was calling koyomi!.reloadData()

uknowmeright avatar Jan 23 '18 15:01 uknowmeright