Instance Method

saveCalendar(_:commit:)

Saves a calendar to the event store by either committing or batching the changes.

Declaration

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

Parameters

calendar

The calendar to be saved.

commit

true to save the calendar immediately; otherwise, the change is batched until the commit() method is invoked.

error

The error that occurred, if any; otherwise, nil.

Return Value

true if successful; otherwise, false.

Discussion

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

See Also