JTAppleCalendar: Incorrect cellState.selectedPosition for specific sell

Hello there one more time 😄 Sorry for a lot of issues.

Okey, i found bug (as i think) with selected position of cellState for the cell if cell is the first sunday of the month. This cell should be as .full selectedPosition as i understand. It is produced only if the month starts with Sunday (or another first day of week?).

I can catch this case as:

if (cellState.day == DaysOfWeek.sunday && cellState.text == "1") {
        
}

And for best understanding of such problem i post the image ym3h9v2iqee2r9tx5bqx0pev8-0ywsq4imqrhdyjrpc

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (14 by maintainers)

Most upvoted comments

@KyleConway ok. I think i did the fix for the first issue, and i kept my fingers crossed hoping it will fix your issue 😆 . Let me look into you use-case now.

closing this as the original issue has been resolved.

@KyleConway you can stay on master branch. I will make an official release once i finish that last logic change with range selection. So official version might be released in about 1 week? more or less.

@KyleConway that said, i did find another issue with range selection I am currently fixing. If the code suggested above does not resolve your problem, then this next fix will.

@KyleConway ok after looking into your issue, i do not think what you are experiencing is a bug (unless i am wrong).

You are using this to select right?

calendarView.selectDates(from: someStartDate, to: someEndDate,  triggerSelectionDelegate: false, keepSelectionIfMultiSelectionAllowed: true)

I think what you need is just this:

calendarView.selectDates(from: someStartDate, to: someEndDate)

I think in your code, you are not triggering the delegate. Did this resolve your issue?

Ok. this is a real issue. I know the solution. I’ll code a fix this weekend for the latest (or earlier if im free).