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

# init(delegate:)

Creates an interaction with the specified delegate.

## Declaration

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