---
title: allowsReplacementForCurrentlyHighlightedResult
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uifindsession/allowsreplacementforcurrentlyhighlightedresult
---

# allowsReplacementForCurrentlyHighlightedResult

A Boolean value that indicates whether to allow replacing the result the find panel is highlighting.

## Declaration

```swift
var allowsReplacementForCurrentlyHighlightedResult: Bool { get }
```

## Discussion

Discussion This property determines whether the find panel supports replacement for the currently highlighted item. If true, the system enables the Replace button in the find panel and the hardware keyboard shortcuts for replacement. The default value is true if supportsReplacement is true.

## See Also

### Getting session information

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