---
title: UITextSearchingFindSession
framework: uikit
role: symbol
role_heading: Class
path: uikit/uitextsearchingfindsession
---

# UITextSearchingFindSession

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

## Declaration

```swift
@MainActor class UITextSearchingFindSession
```

## Overview

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

- [init(searchableObject:)](uikit/uitextsearchingfindsession/init(searchableobject:)-9zc4e.md)
- [init(searchableObject:)](uikit/uitextsearchingfindsession/init(searchableobject:)-7swl5.md)

### Getting the searchable object

- [searchableObject](uikit/uitextsearchingfindsession/searchableobject.md)

## Relationships

### Inherits From

- [UIFindSession](uikit/uifindsession.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Find and replace

- [UIFindInteraction](uikit/uifindinteraction.md)
- [UIFindInteractionDelegate](uikit/uifindinteractiondelegate.md)
- [UIFindSession](uikit/uifindsession.md)
- [UITextSearching](uikit/uitextsearching-3wkjv.md)
- [UITextSearchOptions](uikit/uitextsearchoptions.md)
- [UITextSearchFoundTextStyle](uikit/uitextsearchfoundtextstyle.md)
- [UITextSearchOptions.WordMatchMethod](uikit/uitextsearchoptions/wordmatchmethod-swift.enum.md)
- [UIFindSession.SearchResultDisplayStyle](uikit/uifindsession/searchresultdisplaystyle-swift.enum.md)
