Instance Method

removeCalendar(_:commit:)

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

Declaration

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

Parameters

calendar

The calendar to be removed.

commit

true to remove 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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software