WenchaoD / FSCalendar

A fully customizable iOS calendar library, compatible with Objective-C and Swift
MIT License
10.6k stars 1.94k forks source link

Event numbers show on hide dates #1434

Open iPermanent opened 6 months ago

iPermanent commented 6 months ago

func calendar(_ calendar: FSCalendar, numberOfEventsFor date: Date) -> Int { return 1 } when I implement this function, even if the day is not show on the calendar(month scope and the previous or next month date), I can judge the date by the code below: if date.month() != calendar.currentPage.month() { return 0 } but this is still strange