---
title: "textField(_:willPresentEditMenuWith:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextfielddelegate/textfield(_:willpresenteditmenuwith:)"
---

# textField(_:willPresentEditMenuWith:)

Tells the delegate that the system is about to present an edit menu with an animator.

## Declaration

```swift
optional func textField(_ textField: UITextField, willPresentEditMenuWith animator: any UIEditMenuInteractionAnimating)
```

## Parameters

- `textField`: The text field showing the menu.
- `animator`: The appearance animator to add animations to, so that the animations will run alongside the appearance transition.

## See Also

### Customizing an edit menu

- [textField(_:willDismissEditMenuWith:)](uikit/uitextfielddelegate/textfield(_:willdismisseditmenuwith:).md)
