Contents

presentFindNavigator(showingReplace:)

Begins a search, displaying the find panel.

Declaration

func presentFindNavigator(showingReplace: Bool)

Parameters

  • showingReplace:

    YES to display a replace text field in the panel if the delegate supports text replacement. No to avoid displaying the replace text field.

Discussion

You use this method to begin a search and display the find panel. The method calls findInteraction(_:sessionFor:) on the interaction object’s delegate and updates the UI using the session object the delegate returns.

The following example presents the find panel from a bar button item.

@objc func findButtonTapped(sender: UIBarButtonItem) {
    self.findInteraction!.presentFindNavigator(showingReplace: false)
}

The method has no effect if the find navigator panel is already present.

See Also

Managing find interactions