Contents

findPrevious(_:)

Finds the previous match in your app’s interface.

Declaration

optional func findPrevious(_ sender: Any?)

Parameters

  • sender:

    The object calling this method.

Discussion

UIKit calls this method when the user selects the Find Previous command from an editing menu. Your implementation should highlight the previous result in the UI for finding textual content in your view.

For example, a view using a find interaction might call highlightNextResult(in:) to update the find session.

See Also

Handling find and replace commands