<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit37UIIndirectScribbleInteractionDelegateP"
  },
  "title" : "UIIndirectScribbleInteractionDelegate"
}
-->

# UIIndirectScribbleInteractionDelegate

Methods that customize behavior on views that aren’t formally text input views.

```
protocol UIIndirectScribbleInteractionDelegate : NSObjectProtocol
```

## Topics

### Identifying Elements

[`ElementIdentifier`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/ElementIdentifier)

A unique identifier for a control that isn’t a text field in a Scribble interaction.

### Managing Focus

[`indirectScribbleInteraction(_:isElementFocused:)`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:isElementFocused:))

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

[`indirectScribbleInteraction(_:focusElementIfNeeded:referencePoint:completion:)`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:focusElementIfNeeded:referencePoint:completion:))

Asks the delegate to focus an element to handle text edits.

[`indirectScribbleInteraction(_:shouldDelayFocusForElement:)`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:shouldDelayFocusForElement:))

Allow the delegate to delay focusing an element.

### Tracking Scribble Input

[`indirectScribbleInteraction(_:willBeginWritingInElement:)`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:willBeginWritingInElement:))

Informs the delegate when the user begins writing.

[`indirectScribbleInteraction(_:didFinishWritingInElement:)`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:didFinishWritingInElement:))

Informs the delegate when the user finishes writing.

### Finding Elements and Frames

[`indirectScribbleInteraction(_:frameForElement:)`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:frameForElement:))

Asks the delegate to provide the frame of an element.

[`indirectScribbleInteraction(_:requestElementsIn:completion:)`](/documentation/UIKit/UIIndirectScribbleInteractionDelegate-hdh/indirectScribbleInteraction(_:requestElementsIn:completion:))

Asks the delegate to return the locations of text input elements inside the specified rectangle of the view.



---

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)