Selection color changes the events color in FSCalendar

前端 未结 2 1062
南方客
南方客 2021-01-27 17:35

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. Ho

2条回答
  •  耶瑟儿~
    2021-01-27 18:35

    I think you have not set the eventSelectionColor Property of FSCalendar.

    You can set it programmatically by using below code.

    calendar.appearance.eventSelectionColor = UIColor.green
    

    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.

提交回复
热议问题