<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextSearchOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITextSearchOptions"
  },
  "title" : "UITextSearchOptions"
}
-->

# UITextSearchOptions

An object containing the configurable options for a text search.

```
@MainActor class UITextSearchOptions
```

## Topics

### Configuring searches

[`var stringCompareOptions: NSString.CompareOptions`](/documentation/UIKit/UITextSearchOptions/stringCompareOptions)

The options to use in comparisons when searching text for matches to a string.

[`var wordMatchMethod: UITextSearchOptions.WordMatchMethod`](/documentation/UIKit/UITextSearchOptions/wordMatchMethod-swift.property)

The method to use when searching text for matches to words.

[`enum WordMatchMethod`](/documentation/UIKit/UITextSearchOptions/WordMatchMethod-swift.enum)

Constants that describe the method to use when searching text for words that match a string.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)