---
title: "indirectScribbleInteraction(_:didFinishWritingInElement:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiindirectscribbleinteractiondelegate-hdh/indirectscribbleinteraction(_:didfinishwritinginelement:)"
---

# indirectScribbleInteraction(_:didFinishWritingInElement:)

Informs the delegate when the user finishes writing.

## Declaration

```swift
func indirectScribbleInteraction(_ interaction: any UIInteraction, didFinishWritingInElement elementIdentifier: Self.ElementIdentifier)
```

## Parameters

- `interaction`: The interaction where the user finished writing.
- `elementIdentifier`: The identifier of the element that should receive focus.

## Discussion

Discussion Use this to reset placeholders or other UI elements, if appropriate, to their state from before the user started writing.

## See Also

### Tracking Scribble Input

- [indirectScribbleInteraction(_:willBeginWritingInElement:)](uikit/uiindirectscribbleinteractiondelegate-hdh/indirectscribbleinteraction(_:willbeginwritinginelement:).md)
