---
title: "init(delegate:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiscribbleinteraction/init(delegate:)"
---

# init(delegate:)

Creates a Scribble interaction that allows customizing the behavior of Scribble on text input views with the delegate you provide.

## Declaration

```swift
init(delegate: any UIScribbleInteractionDelegate)
```

## Parameters

- `delegate`: The object that acts as the delegate of this doc://com.apple.uikit/documentation/UIKit/UIScribbleInteraction instance.
