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

# highlightedResultIndex

The index of the result the find panel highlights.

```
var highlightedResultIndex: Int { get }
```

## Discussion

To indicate no highlighted result, return `nil` (Swift) or <doc://com.apple.documentation/documentation/Foundation/NSNotFound-9t5v2> (Objective-C).

---

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)