---
title: "textView(_:willPresentEditMenuWith:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextviewdelegate/textview(_:willpresenteditmenuwith:)"
---

# textView(_:willPresentEditMenuWith:)

## Declaration

```swift
optional func textView(_ textView: UITextView, willPresentEditMenuWith animator: any UIEditMenuInteractionAnimating)
```

## Parameters

- `textView`: The text view displaying the menu.
- `animator`: Appearance animator. Add animations to this object to run them alongside the appearance transition.

## Discussion

Discussion Called when the text view is about to present the edit menu.

## See Also

### Customizing an edit menu

- [textView(_:willDismissEditMenuWith:)](uikit/uitextviewdelegate/textview(_:willdismisseditmenuwith:).md)
