This is my response from api
SUCCESS: {
"5": {
"count": 1,
"topEvent": false
},
"6": {
"count": 1,
"topEvent": false
},
"7": {
"count": 3,
"topEvent": true
},
"success": 1
}
In this response i have events in day 5,6 & 7, rest of the days there are no events. Now, I would need to show the count in the center of calendar icon and it should be green when the topEvent is true.
what logic i apply in
func calendar(_ calendar: FSCalendar, numberOfEventsFor date: Date) -> Int {
}
please help me..