-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
New Issue Checklist
- Use the latest version of CalendarView
- I've read the GitHub Community Guidelines
- I've searched for existing issues
Issue Description
It seems like cellFont
and cellEventColor
were incorrect even if I configured them with CalendarView.Style()
. I already tried on default ViewController.
style.cellEventColor = .blue
style.cellFont = UIFont(name: "Helvetica", size: 11.0) UIFont.systemFont(ofSize: 11.0)
It didn't change at all
Solution
I've read the code, and the root cause is that CalendarDayCell
was initialized and set cellFont
and cellEventColor
before dayCell.style = style
was assigned in CalendarView+DataSource
.
I created a PR here #146. You may want to take a look. It works fine then.
Environment
XCode version: 14.3
Swift version: 5.0
KDCalendar version: 1.8.9
Metadata
Metadata
Assignees
Labels
No labels