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

# indirectScribbleInteraction(_:willBeginWritingInElement:)

Informs the delegate when the user begins writing.

## Declaration

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

## Parameters

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

## Discussion

Discussion Use this to hide custom placeholders or other UI elements that can interfere with writing.

## See Also

### Tracking Scribble Input

- [indirectScribbleInteraction(_:didFinishWritingInElement:)](uikit/uiindirectscribbleinteractiondelegate-hdh/indirectscribbleinteraction(_:didfinishwritinginelement:).md)
