Instance Method

save(_:commit:)

Saves changes to a reminder by either committing or batching the changes.

Declaration

func save(_ reminder: EKReminder, commit: Bool) throws

Parameters

reminder

The reminder to be saved.

commit

A Boolean value indicating whether to save the reminder immediately or to batch the changes; passing false will not commit changes to the event store until the commit() method is invoked.

error

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

Return Value

If successful, true; otherwise, false.

Discussion

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

See Also