---
title: "findInteraction(_:didEnd:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uifindinteractiondelegate/findinteraction(_:didend:)"
---

# findInteraction(_:didEnd:)

Informs the delegate when the interaction is about to dismiss the find panel.

## Declaration

```swift
optional func findInteraction(_ interaction: UIFindInteraction, didEnd session: UIFindSession)
```

## Parameters

- `interaction`: The interaction object triggering the find panel.
- `session`: The session object you provided for the interaction.

## Discussion

Discussion Use this method to undo decoration on your view to indicate that a search operation is complete. For example, remove a dimming view from around the unhighlighted search results.

## See Also

### Decorating the searched content

- [findInteraction(_:didBegin:)](uikit/uifindinteractiondelegate/findinteraction(_:didbegin:).md)
