In my SFCalender, I am displaying events that are provided by the server for the list of visible days. When the calendar first loads, from the constructor I make a call with something similar to:
fetchData() {
DateTime start = this.VisibleDates.GetItem<NSDate>(0).NSDateToDateTime();
DateTime end = this.VisibleDates.GetItem<NSDate>(this.VisibleDates.Count - 1).NSDateToDateTime();
fetchData(start, end);//returns dates from server
}
This creates the list of custom appointments and sets them in the calendar. It works great when I do the initial load. I also call the same method from my SFCalendarDelegate.DidMonthChange. It loads the data from the server correctly, but the UI doesn't update when the appointments are set. I either have to interact with the calendar (tap it) or rotate the device to make the UI update and show the dots.
Even more odd however, is I am getting issues where I can't swipe back to the current month. I can load the calendar, and show my events for April. If I swipe to May, my events load (but don't show.) If I tap the calendar, I can see the event dots. Now if I try to swipe back to April, I see April for a moment and it will fetch the data for April, but then the UI will display May again. If I continue to swipe to the left, it will keep moving me back to May. If I go to June (where there are no events scheduled yet) I can go back to May and then go back to April.