---
title: "editMenuInteraction(_:willPresentMenuFor:animator:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uieditmenuinteractiondelegate/editmenuinteraction(_:willpresentmenufor:animator:)"
---

# editMenuInteraction(_:willPresentMenuFor:animator:)

Informs the delegate when the interaction is about to present the menu.

## Declaration

```swift
optional func editMenuInteraction(_ interaction: UIEditMenuInteraction, willPresentMenuFor configuration: UIEditMenuConfiguration, animator: any UIEditMenuInteractionAnimating)
```

## Parameters

- `interaction`: The interaction object triggering the menu.
- `configuration`: The object containing the configuration details for the menu.
- `animator`: The object you use to add animations that run alongside the appearance transition.

## See Also

### Customizing the Menu

- [editMenuInteraction(_:menuFor:suggestedActions:)](uikit/uieditmenuinteractiondelegate/editmenuinteraction(_:menufor:suggestedactions:).md)
- [editMenuInteraction(_:targetRectFor:)](uikit/uieditmenuinteractiondelegate/editmenuinteraction(_:targetrectfor:).md)
- [editMenuInteraction(_:willDismissMenuFor:animator:)](uikit/uieditmenuinteractiondelegate/editmenuinteraction(_:willdismissmenufor:animator:).md)
- [UIEditMenuInteractionAnimating](uikit/uieditmenuinteractionanimating.md)
