简体   繁体   中英

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.

截屏

My screen shot:

在此处输入图像描述

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.

  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

截屏

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

截屏

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM