Contents

UITextSearchingFindSession

A find session object that wraps a searchable object implementing the text-searching protocol.

Declaration

@MainActor class UITextSearchingFindSession

Overview

Implement the UITextSearching protocol on the class that encapsulates the searchable content for your view to use an instance of UITextSearchingFindSession as the session object. Alternatively, you can subclass UIFindSession to manage the details of the session using a custom class.

The find session’s reference to searchableObject is weakly held to avoid a retain cycle if the view you install the interaction on is the searchable object itself. Ensure that your app maintains a strong reference to the searchable object.

Topics

Creating a text searching find session

Getting the searchable object

See Also

Find and replace