From 3347bf788f51c6ab96df0d3f486b84b144d3a278 Mon Sep 17 00:00:00 2001 From: Piotr Sochalewski Date: Fri, 8 Apr 2016 14:03:36 +0200 Subject: [PATCH] Fix for fillColor when dateIsToday --- FSCalendar/FSCalendarCell.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FSCalendar/FSCalendarCell.m b/FSCalendar/FSCalendarCell.m index 6d51ec1f..516398b8 100644 --- a/FSCalendar/FSCalendarCell.m +++ b/FSCalendar/FSCalendarCell.m @@ -306,9 +306,10 @@ - (UIColor *)colorForBackgroundLayer { if (self.dateIsSelected || self.isSelected) { return self.preferredSelectionColor ?: [self colorForCurrentStateInDictionary:_appearance.backgroundColors]; - } else { - return self.preferredFillColor ?: [self colorForCurrentStateInDictionary:_appearance.backgroundColors]; + } else if (!self.dateIsToday) { + return self.preferredFillColor; } + return [self colorForCurrentStateInDictionary:_appearance.backgroundColors]; } - (UIColor *)colorForTitleLabel