jivesoftware / PDTSimpleCalendar

A simple Calendar / Date Picker for iOS using UICollectionView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delegate to set circleColor & textColor for selected date

MarkMolina opened this issue · comments

Expected to have a delegate method to dynamically set custom color for the selected state as well like:

- (UIColor *)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller circleColorForSelectedDate:(NSDate *)selectedDate

and

- (UIColor *)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller textColorForSelectedDate:(NSDate *)selectedDate

Setting different colors here will only apply to the dates which is currently selected

This:
[[PDTSimpleCalendarViewCell appearance] setCircleSelectedColor:[UIColor orangeColor]];
[[PDTSimpleCalendarViewCell appearance] setTextSelectedColor:[UIColor purpleColor]];

alone won't help if you need different colors depending on the date.

I'd like to see this feature too, or at least an option to disable the use of custom colors on Today's date and Selected date.
I'm using this library to implement a color coded calendar that does not need selection or to emphasize today's date and there does not seem to be a way to remove those styles.

Thanks