Search code examples
iosswiftxcodefscalendar

How to change background colour in Fscalender customize Swift


I am trying to change background colour of weekdays and set current date border like below screen shot.

ScreenShot

My screen shot:

enter image description here

Team, please let me know how to change background colour and set border colour Any help would be greatly appreciated. Looking forward to hear from you.


Solution

    1. First, change background color of FSCalendar to clear.
    2. Add a custom view (background gray) and place it below the calendar and add constraints.
    3. Set weekday textcolor to white.

    Main Storyboard

    Screen Shot

    As for modifying today appearance, please download the FSCalendar Example-swift project and check DelegateAppearanceViewController to have a better understanding on how to modify the overall appearance.

    Delegate Appearance

    Screen Shot