useSelectionForFind(_:)
Begins a search for the selected content in your app’s interface.
Declaration
optional func useSelectionForFind(_ sender: Any?)Parameters
- sender:
The object calling this method.
Discussion
UIKit calls this method when the user selects the Use Selection For Find command from an editing menu. Your implementation should present the UI for finding textual content in your view and use the selected text for the search.
For example, a view using a find interaction might call presentFindNavigator(showingReplace:) and pass the selected text as the query string.