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 event dots on the blue selection color must come either green or red.
For image you can see this link : https://github.com/WenchaoD/FSCalendar/issues/919
I think you have not set the eventSelectionColor Property of FSCalendar.
You can set it programmatically by using below code.
or
You can set it from storyboard in Attributes inspector field.Set the event selection color property of FSCalendar as shown in below image.
Hope this will help you.
For multiple event with different colors, you have to use
FSCalendarDelegateAppearance
method.Example::::
//MARK: - set formatter of date
//MARK: - assign array of event
After execution of above delegate method we get two events on "2018-08-14".first event color is red and second event color is blue.
Hope this will help you.