Contents

commitEditing()

Attempts to commit any pending edits.

Declaration

@MainActor func commitEditing() -> Bool

Return Value

true if successful or no edits were pending.

Discussion

The receiver invokes commitEditing on any current editors, returning their response. A commit is denied if the receiver fails to apply the changes to the model object, perhaps due to a validation error.

See Also

Managing editing