简体   繁体   English

如何在 Fscalender 自定义 Swift 中更改背景颜色

[英]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.首先,将 FSCalendar 的背景颜色更改为清除。
  2. Add a custom view (background gray) and place it below the calendar and add constraints.添加自定义视图(背景灰色)并将其放在日历下方并添加约束。
  3. Set weekday textcolor to white.将工作日文本颜色设置为白色。

Main Storyboard主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.关于修改今天的外观,请下载FSCalendar Example-swift项目并查看DelegateAppearanceViewController,以更好地了解如何修改整体外观。

Delegate Appearance代表出席

截屏

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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