FSCalendar icon indicating copy to clipboard operation
FSCalendar copied to clipboard

redraw dot events after calendarCurrentPageDidChange

Open jhondeediaz opened this issue 3 years ago • 1 comments

Hi, is it possible to redraw/refresh the dots(numberOfEvents) after calling an api request in calendarCurrentPageDidChange delegate? api request is called on page change

func calendarCurrentPageDidChange(_ calendar: FSCalendar) {
    fetchDatesWithEvents(currentMonthAndYear) // api request
    refreshNumberOfEvents() // <--- is this possible?
}

jhondeediaz avatar Jan 19 '22 13:01 jhondeediaz

use calendar.reloadData()

gap1994 avatar Mar 11 '23 07:03 gap1994