Contents

revert(_:)

Causes the receiver to discard any unsaved changes to bound user default properties, restoring their previous values.

Declaration

@IBAction func revert(_ sender: Any?)

Discussion

The receiver invokes discardEditing on any currently registered editors. The sender is typically the object that invoked this method.

If appliesImmediately is true, this method only causes any bound editors with uncommitted changes to discard their edits.

See Also

Managing user defaults values