I want to change all past dates title Color in fscalendar in Swift Not A Particular Date I added this bit of code:- Delegate method:-
func calendar(calendar: FSCalendar!, appearance: FSCalendarAppearance!, titleDefaultColorForDate date: NSDate!) -> UIColor! {
if date .compare(Date()) == .orderedAscending {
return .green
}else {
return .red
}
}
Try to connect delegate and data source of calendar view and check because I got the output with this method
Output:
And if you want same title color for past and future dates, Use below code
Output: