---
title: highlightedResultIndex
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uifindsession/highlightedresultindex
---

# highlightedResultIndex

The index of the result the find panel highlights.

## Declaration

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

## Discussion

Discussion To indicate no highlighted result, return nil (Swift) or NSNotFound (Objective-C).

## See Also

### Getting session information

- [resultCount](uikit/uifindsession/resultcount.md)
- [supportsReplacement](uikit/uifindsession/supportsreplacement.md)
- [allowsReplacementForCurrentlyHighlightedResult](uikit/uifindsession/allowsreplacementforcurrentlyhighlightedresult.md)
- [searchResultDisplayStyle](uikit/uifindsession/searchresultdisplaystyle-swift.property.md)
- [UIFindSession.SearchResultDisplayStyle](uikit/uifindsession/searchresultdisplaystyle-swift.enum.md)
