<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScribbleInteractionDelegate/scribbleInteraction(_:shouldBeginAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIScribbleInteractionDelegate(im)scribbleInteraction:shouldBeginAtLocation:"
  },
  "title" : "scribbleInteraction(_:shouldBeginAt:)"
}
-->

# scribbleInteraction(_:shouldBeginAt:)

Returns a Boolean value that indicates whether the delegate should allow writing at a specific location in the view.

```
optional func scribbleInteraction(_ interaction: UIScribbleInteraction, shouldBeginAt location: CGPoint) -> Bool
```

## Parameters

`interaction`

The text view asking if it can start receiving user input.

`location`

The location of the text view as a <doc://com.apple.documentation/documentation/CoreFoundation/CGPoint> in the view’s coordinate system.

## Return Value

Return `false` to disallow writing at the specified location; otherwise return `true`.

## Discussion

Use this callback to temporarily suppress Scribble in text input views if your app supports drawing over text or special interaction when using Apple Pencil. In cases like this, consider providing a UI for the user to toggle between drawing and handwriting.

This callback can also return `false` for views that handle Apple Pencil events directly, like a drawing canvas, since nearby text fields could take over the events for writing.

---

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)