Instance Property


A Boolean value that determines whether shaking the device displays the undo-redo user interface.


var applicationSupportsShakeToEdit: Bool { get set }


The default value is true. Set the property to false if you don’t want your app to display the Undo and Redo buttons when users shake the device.

See Also

Controlling and Handling Events

func sendEvent(UIEvent)

Dispatches an event to the appropriate responder objects in the app.

func sendAction(Selector, to: Any?, from: Any?, for: UIEvent?) -> Bool

Sends an action message identified by selector to a specified target.

func beginIgnoringInteractionEvents()

Tells the receiver to suspend the handling of touch-related events.

func endIgnoringInteractionEvents()

Tells the receiver to resume the handling of touch-related events.

var isIgnoringInteractionEvents: Bool

A Boolean value that indicates whether the receiver is ignoring events initiated by touches on the screen.