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

# indirectScribbleInteraction(_:isElementFocused:)

Asks the delegate if an element is currently focused, according to the internal state of the interaction’s view.

## Declaration

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

## Parameters

- `interaction`: The interaction asking for the focused state.
- `elementIdentifier`: The identifier of the element the interaction is asking about.

## Return Value

Return Value Returns true if the element is the one currently focused.

## See Also

### Managing Focus

- [indirectScribbleInteraction(_:focusElementIfNeeded:referencePoint:completion:)](uikit/uiindirectscribbleinteractiondelegate-hdh/indirectscribbleinteraction(_:focuselementifneeded:referencepoint:completion:).md)
- [indirectScribbleInteraction(_:shouldDelayFocusForElement:)](uikit/uiindirectscribbleinteractiondelegate-hdh/indirectscribbleinteraction(_:shoulddelayfocusforelement:).md)
