Contents

accessibilityPerformConfirm()

Simulates pressing Return in the accessibility element.

Declaration

func accessibilityPerformConfirm() -> Bool

Return Value

true if the action was successfully triggered; otherwise, false. This method does not indicate the success or failure of the action, just the fact that the action was successfully triggered.

Discussion

Use this method on elements that take keyboard input, such as a text field.

See Also

Confirming and canceling operations