Skip to content

Map EKEvent recurrence rules to Event.eventSchedule #23

Description

@mattt

Follow-up to #16. Event now carries notes, all-day status, event status, organizer, and attendees (0.9.0 and 0.10.0), but recurrence rules are still dropped in init(_ event: EKEvent).

schema.org models this as eventSchedule with a Schedule value: repeatFrequency, byDay, byMonth, byMonthDay, repeatCount, startDate, endDate, exceptDate, and scheduleTimezone. EKRecurrenceRule maps onto most of that: frequency and interval become an ISO 8601 duration for repeatFrequency, daysOfTheWeek becomes byDay, monthsOfTheYear becomes byMonth, daysOfTheMonth becomes byMonthDay, and recurrenceEnd becomes either repeatCount or endDate. Set positions, daysOfTheYear, and weeksOfTheYear have no schema.org equivalent.

Open questions: whether to add a full Schedule type or something narrower, and what to do with rules that don't fit.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions