---
title: "init(searchableObject:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uitextsearchingfindsession/init(searchableobject:)-9zc4e"
---

# init(searchableObject:)

Initializes an object to manage the search for the searchable object you specify.

## Declaration

```swift
init(searchableObject: any __UITextSearching)
```

## Parameters

- `searchableObject`: An object that conforms to the doc://com.apple.uikit/documentation/UIKit/UITextSearching-53wjq protocol that the session uses to search the text of your app and decorate the found results.

## See Also

### Creating a text searching find session

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