Contents

searchString(_:inUserInterfaceItemString:range:found:)

Searches for the string in the user interface.

Declaration

func searchString(_ searchString: String, inUserInterfaceItemString stringToSearch: String, range searchRange: NSRange, found foundRange: UnsafeMutablePointer<NSRange>?) -> Bool

Parameters

  • searchString:

    The search string.

  • stringToSearch:

    The string to search.

  • searchRange:

    The subrange of the stringToSearch to restrict the search to.

  • foundRange:

    Returns, by-reference, the range of the searchString within stringToSearch.

Return Value

true if the searchString is matched, otherwise false.

Discussion

The search uses the default matching rules for Spotlight for Help.

See Also

Providing help information