---
title: delegate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscribbleinteraction/delegate
---

# delegate

The object that acts as the delegate for this interaction and responds to Scribble events for text input views.

## Declaration

```swift
weak var delegate: (any UIScribbleInteractionDelegate)? { get }
```

## Discussion

Discussion The delegate responds to events generated by the user as they interact with the canvas using Apple pencil. The delegate methods allow you to manage the focus of text views, know when writing begins and ends, and let scribble know where elements are within specific areas of the screen.
