Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

multiple colors #45

Open
thom5409 opened this issue Jan 5, 2018 · 4 comments
Open

multiple colors #45

thom5409 opened this issue Jan 5, 2018 · 4 comments

Comments

@thom5409
Copy link

thom5409 commented Jan 5, 2018

Does there happen to be a way to color days different colors? Like if I want one day red and another day green? For example the code

let sevenDaysFromNow = Calendar.current.date(byAdding: .day, value: 7, to: Date())
calendarView.setDayBackgrondColor(.green, of: sevenDaysFromNow!)
    
let eightDaysFromNow = Calendar.current.date(byAdding: .day, value: 8, to: Date())
calendarView.setDayBackgrondColor(.red, of: eightDaysFromNow!)

Produces the following display
two_red

@sadhu-sanjay
Copy link

Can anyone please Solve this problem, i need this feature very badly.

@loverde-co
Copy link

Me too!

@kholidahnastain
Copy link

I need this feature too , please help

@kholidahnastain
Copy link

I resolve this issue with add all component in setdaycolor in the pod

example :
@discardableResult
public func setDayColor(_ dayColor: UIColor, of date: Date, to toDate: Date? = nil) -> Self {
model.setHighlightedDates(from: date, to: toDate)
highlightedDayColor = dayColor
return self
}

@discardableResult
public func setDayColor1(_ dayColor1: UIColor, of date: Date, to toDate: Date? = nil) -> Self {
    model.setHighlightedDates1(from: date, to: toDate)
    highlightedDayColor1 = dayColor1
    return self
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants