<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:isElementFocused:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit37UIIndirectScribbleInteractionDelegateP08indirectcD0_16isElementFocusedSbSo13UIInteraction_p_0H10IdentifierQztF"
  },
  "title" : "indirectScribbleInteraction(_:isElementFocused:)"
}
-->

# indirectScribbleInteraction(_:isElementFocused:)

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

```
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

Returns <doc://com.apple.documentation/documentation/Swift/true> if the element is the one currently focused.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)