CalendarView icon indicating copy to clipboard operation
CalendarView copied to clipboard

The dots are not displayed on the right day

Open mink-lparrouy opened this issue 5 years ago • 1 comments

Hi there,

I used your library to display the logs of my user in a calendar/ I am facing an issue, it seems that the dots are displayed a day after the right day.

Simulator Screen Shot - iPhone 11 - 2019-11-27 at 11 12 17

As you see, I have 4 logs in November : 21, 22, 25 and 26 but the dots are displayed in the days : 22, 23, 26 and 27.

I used this function to display dots where existingDates contains all my logs that's displayed below the calendar.

func calendar(_ calendar: FSCalendar, numberOfEventsFor date: Date) -> Int { if(existingDates.contains(date.toFormat("yyyy-MM-dd"))){ return 1 } else { return 0 } }

Best regards, Louis

mink-lparrouy avatar Nov 27 '19 10:11 mink-lparrouy

Sorry for the late reply. I checked the project and the dates seem to be displaying fine on my side. Have you resolved it? Is it part of your function rather than the calendar?

mmick66 avatar Dec 10 '19 13:12 mmick66