CalendarView
CalendarView copied to clipboard
isToday text color issue *FIX*
Fix suggestion for out of the range cells being colored with cellTextColorToday color. Some cells that are not today are being "randomly" colored (more analysis needed). Obviously, with the fix, if today is out of the range it will not be colored.
func updateTextColor() {
if isSelected {
self.textLabel.textColor = style.cellSelectedTextColor
}
/*else if isToday {
self.textLabel.textColor = style.cellTextColorToday
//print(self.textLabel.text!)
}*/
else if isOutOfRange {
self.textLabel.textColor = style.cellColorOutOfRange
}
//added
else if isToday {
self.textLabel.textColor = style.cellTextColorToday
}
else if isAdjacent {
self.textLabel.textColor = style.cellColorAdjacent
}
else if isWeekend {
self.textLabel.textColor = style.cellTextColorWeekend
}
else {
self.textLabel.textColor = style.cellTextColorDefault
}
}
@salvaterra we were facing the same issue and this helped us, thanks!
I am seeing this issue on 1.8.9