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

# init(delegate:)

Initializes an edit menu interaction object with the delegate object you specify.

## Declaration

```swift
init(delegate: (any UIEditMenuInteractionDelegate)?)
```

## Discussion

Discussion Create an object that conforms to the UIEditMenuInteractionDelegate protocol and assign it to this property. The interaction uses the system delegate if no delegate is provided (if you pass in nil).
