Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable future dates selection in FScalendar swift

I am using https://github.com/WenchaoD/FSCalendar in my project . MaximumSelectedDate is a read-only property .Then how can disable future dates ?

like image 957
Sreekanth Avatar asked Dec 08 '22 19:12

Sreekanth


1 Answers

You should be using the delegate method to address this

func maximumDate(for calendar: FSCalendar) -> Date {
    return Date()
}
like image 158
Devraj Avatar answered Jan 12 '23 00:01

Devraj