replaceAll(queryString:options:withText:)
Informs the searchable object to replace all matching text across all searchable documents.
Declaration
func replaceAll(queryString: String, options: UITextSearchOptions, withText: String)Parameters
- queryString:
The string to search for and replace.
- options:
The configurable options to use for matching words and comparing strings.
- withText:
The string to replace the text with.
Discussion
When supportsTextReplacement returns YES, the system calls this method during a find session to request the replacement of all text matching the query string.