johnvuko / JTCalendar

A customizable calendar view for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change the color of day

opened this issue · comments

Hello,
Thanks for a great library. Wanted to know how would it be possible to change the text color of the day text, i.e., "MON, TUE" etc. I did see some issues regarding this, but was not of help.
p.s. I'm doing this in swift.
Thanks.

Never mind, did find a solution for it.

func calendarBuildWeekDayView(_ calendar: JTCalendarManager!) -> UIView! {
        let jtCalenderWeekDayView = JTCalendarWeekDayView()
        for label in jtCalenderWeekDayView.dayViews {
            (label as! UILabel).textColor = UIColor.white
        }
        return jtCalenderWeekDayView
    }