---
title: "scribbleInteraction(_:shouldBeginAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiscribbleinteractiondelegate/scribbleinteraction(_:shouldbeginat:)"
---

# scribbleInteraction(_:shouldBeginAt:)

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

## Declaration

```swift
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 Value Return false to disallow writing at the specified location; otherwise return true.

## Discussion

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.

## See Also

### Allowing and controlling Scribble interactions

- [scribbleInteractionShouldDelayFocus(_:)](uikit/uiscribbleinteractiondelegate/scribbleinteractionshoulddelayfocus(_:).md)
