commitEditing()
Attempts to commit any pending edits.
Declaration
@MainActor func commitEditing() -> BoolReturn 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.