highlightNextResult(in:)
Updates the highlighted result to the next or previous match.
Declaration
func highlightNextResult(in direction: UITextStorageDirection)Parameters
- direction:
The direction, either forward or backward, to move through the search results.
Discussion
The system calls this method when a person taps the next or previous button, or enters Return or Shift+Return on a hardware keyboard while the search field has focus.