swift - 如何在 FSCalendar(Swift 5.0) 中增加特定日期的突出显示颜色
问题描述
我正在尝试增加 FSCalendar 中特定日期的突出显示颜色的大小。下面是正在使用的代码也正在附加。请让我知道我缺少什么。谢谢
func setUpCalendar() {
calendar = FSCalendar(frame: CGRect(x: 20, y: 150, width: self.view.frame.size.width - 30, height: 150))
calendar.scrollDirection = .horizontal
calendar.scope = .week
calendar.allowsMultipleSelection = false
calendar.appearance.separators = .interRows
calendar.rowHeight = 30.0
calendar.appearance.headerTitleColor = UIColor(hex: "FF7271")
calendar.appearance.todayColor = UIColor(hex: "FF7271")
calendar.appearance.selectionColor = UIColor(hex: "FFEFEF")
calendar.appearance.titleSelectionColor = .black
calendar.appearance.weekdayTextColor = .systemGray
calendar.appearance.headerMinimumDissolvedAlpha = 0
calendar.appearance.headerTitleFont = UIFont(name: "System", size: 0)
}
解决方案
推荐阅读
- c# - 如何从字符串中提取浮点数但不包括同一字符串中的其他数字
- php - Laravel Passport 没有 Vue 组件文件
- node.js - Socket.io 与 Firebase 主机上的客户端和 Heroku 上的服务器
- c# - Jenkins Freestyle 构建中 MSbuild 中的解决方案路径错误
- ruby-on-rails - 更改前面没有属性名称的验证消息
- java - 为什么 PrintWriter.println() 在写入 HTML 时不终止行?
- esp32 - 如何让 ESP32 与 Google 表通信
- javascript - 如何从一系列在 javascript 中充当行和列的数组中找到所有排列?
- c++ - 更改对象向量的对象时,值会不断重置
- selenium-webdriver - 在 Protractor 和 Selenium webdriver 中,如何获取已复制到剪贴板的文本?