patchthecode / JTAppleCalendar

The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable
https://patchthecode.com
MIT License
7.57k stars 812 forks source link

Is it possible to select dates from recurrence rule? #1285

Closed marcossimas closed 1 year ago

marcossimas commented 4 years ago

(Required) Version Number: 8.0.2

Description

I’d like to select dates from recurrence rule. I have options to set recurrence (ie. every week, every tuesday...) Recurrence rules are formatted as defined in the iCalendar RFC.

Example rule: RRULE:FREQ=DAILY;COUNT=30;INTERVAL=1;WKST=MO

Calendar should read the rule and select date accordingly.

Thanks.

Steps To Reproduce

Expected Behavior

Additional Context

patchthecode commented 4 years ago

The function we have to select dates is

calendarView.selectDates(theArrayOfDatesToSelect)

Therefore if you have some rule, then create a function that uses that rule to generate dates according to your rule. Add those dates to an array. then select it using the function above.

can this work?