Contents

removeCalendar(_:commit:)

Removes a calendar from the event store by either committing or batching the changes.

Declaration

func removeCalendar(_ calendar: EKCalendar, commit: Bool) throws

Parameters

  • calendar:

    The calendar to remove.

  • commit:

    True to remove the calendar immediately; otherwise, the change is batched until the Commit() method is invoked.

Discussion

This method raises an exception if calendar belongs to another event store.

See Also

Accessing calendars