I'm using fscalender in my project. I have to choose start date and end date,in which when user selected start date the end date calendar view should disable the previous dates of selected date.How can I achieve this.
`
var satrtDte:Date?
`func calendar(_ calendar: FSCalendar, shouldSelect date: Date, at monthPosition: FSCalendarMonthPosition) -> Bool {
if isFromEndDate == true{
if let start = satrtDte{
if date .compare(start) == .orderedAscending {
return false
}else {
return true
}
}
}
return true
}
`` satrtDte contains start Date