Skip to content

Conversation

@Nicholas714
Copy link

As EKRecurrenceRule does not have functionality such as getOccurrence() or getDatesInBetween(), this provides an extension to an EKEvent to get the list of rrules for that event.

For example:

let eventStore = EKEventStore()
if let event = eventStore.event(withIdentifier: "id") {
    let rrules = event.rrules
    for rrule in rrules {
        print(rrule.getOccurrences())
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant