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

# indirectScribbleInteraction(_:frameForElement:)

Asks the delegate to provide the frame of an element.

## Declaration

```swift
func indirectScribbleInteraction(_ interaction: any UIInteraction, frameForElement elementIdentifier: Self.ElementIdentifier) -> CGRect
```

## Parameters

- `interaction`: The interaction requesting to focus an element.
- `elementIdentifier`: The identifier of the element that should receive focus.

## Return Value

Return Value Returns the frame for the element, in the view coordinate system of the interaction.

## See Also

### Finding Elements and Frames

- [indirectScribbleInteraction(_:requestElementsIn:completion:)](uikit/uiindirectscribbleinteractiondelegate-hdh/indirectscribbleinteraction(_:requestelementsin:completion:).md)
