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

# indirectScribbleInteraction(_:requestElementsIn:completion:)

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

```
func indirectScribbleInteraction(_ interaction: any UIInteraction, requestElementsIn rect: CGRect, completion: @escaping ([Self.ElementIdentifier]) -> Void)
```

## Parameters

`interaction`

The interaction where the user finished writing.

`rect`

The rect around the area where the user is trying to write, in the interaction’s view coordinate system. Return only the elements intersecting this rect.

`completion`

A completion handler that you must call, either synchronously or asynchronously. Pass an array of identifiers of the available elements, or an empty array if there are no elements.

## Discussion

Each rectangle returned by the completion handler represents an area where the user can start writing even if it’s not a text input field itself.

---

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)