Today Index Calculation Incorrect
blakewatters opened this issue · 0 comments
blakewatters commented
I have just noticed that the isToday
value computed in the secondary loop of - [PMCalendarView drawRect:(CGRect)rect]
is reapplying the weekdayOfFirst logic and throwing the calculation off by 2 days -- in the Demo app I am seeing January 17 selected, rather than January 15.
It looks like we can just do a direct comparison of the dayNumber
against the todayIndex
.