WenchaoD / FSCalendar

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

Selection color changes the events color in swift 4. #919

Open swift1022 opened 6 years ago

swift1022 commented 6 years ago

I have a project using FSCalendar in swift 4. I have events as green and red color. But while selecting the particular dates , the color of events changes to selection color. How can I solve this issue as given in image below. The color of events must be as it is.The event dots on the blue selection color must come either green or red. screen shot 2018-04-25 at 2 22 36 pm

topik96 commented 5 years ago

try this function FSCalendarDelegateAppearance func calendar(_ calendar: FSCalendar, appearance: FSCalendarAppearance, eventSelectionColorsFor date: Date) -> [UIColor]?