Open antons81 opened 8 years ago
I quite cant understand your issue. Can you please elaborate more How are you removing the dates? Can you provide some code?
I mean by that, that you are not modifying current array while selecting dates. I create EPCalendar Picker with predefined dates array. Than I need edit dates and remove some dates and add new dates than click on done and delegate logs tell me that old dates still in the array + new dates I selected
This is what I think you are trying to do:
@objc optional func epCalendarPicker(_: EPCalendarPicker, didSelectMultipleDate dates : [Date])
Hi, the issues is, while I am creating calendar controller and providing an array with already selected dates. Than I need to remove some dates from this array and save again calendar with new array of dates. But you not removing no needed dates from current array and adding another the same 2 dates and not modifying current array
this is array from delegate I have provided these dates 2016-04-10 21:00:00 +0000, 2016-04-12 21:00:00 +0000 than clicked again to remove it and get this one [2016-04-10 21:00:00 +0000, 2016-04-12 21:00:00 +0000, 2016-04-10 21:00:00 +0000, 2016-04-12 21:00:00 +0000]