Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textLabel & dotsView in CalendarDayCell did not work with style #147

Open
3 tasks done
leson1106 opened this issue Nov 16, 2023 · 0 comments
Open
3 tasks done

textLabel & dotsView in CalendarDayCell did not work with style #147

leson1106 opened this issue Nov 16, 2023 · 0 comments

Comments

@leson1106
Copy link

leson1106 commented Nov 16, 2023

New Issue Checklist

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

IMG_1917

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.

IMG_1918

Environment

XCode version: 14.3
Swift version: 5.0
KDCalendar version: 1.8.9

@leson1106 leson1106 changed the title textLabel & dotsView in CalendarDayCell didn't not work with style textLabel & dotsView in CalendarDayCell did not work with style Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant