Contents

save(_:span:)

Saves changes to an event permanently.

Declaration

func save(_ event: EKEvent, span: EKSpan) throws

Parameters

  • event:

    The event to save.

  • span:

    The span that indicates whether to remove a single event or all future instances of the event in the case of a recurring event.

Discussion

This method raises an exception if it’s passed an event from another event store.

When saving an event, it’s updated in the Calendar database. Any fields you didn’t modify are updated to reflect the most recent value in the database. If the event has been deleted from the database, it’s recreated as a new event.

See Also

Accessing calendar events