Skip to content

Commit

Permalink
Merge pull request #515 from kallahir/master
Browse files Browse the repository at this point in the history
Removing if-clause that makes impossible to change today date.
  • Loading branch information
WenchaoD authored Dec 17, 2016
2 parents b033061 + 232c0d6 commit 9892f07
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions FSCalendar/FSCalendar.m
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,8 @@ - (void)setToday:(NSDate *)today
_today = nil;
} else {
FSCalendarAssertDateInBounds(today,self.gregorian,self.minimumDate,self.maximumDate);
if (![self.gregorian isDateInToday:today]) {
_today = [self.gregorian dateBySettingHour:0 minute:0 second:0 ofDate:today options:0];
[self setNeedsLayout];
}
_today = [self.gregorian dateBySettingHour:0 minute:0 second:0 ofDate:today options:0];
[self setNeedsLayout];
}
if (self.hasValidateVisibleLayout) {
[_collectionView.visibleCells makeObjectsPerformSelector:@selector(setDateIsToday:) withObject:@NO];
Expand Down

0 comments on commit 9892f07

Please sign in to comment.