---
title: "updateVisibleMenuPosition(animated:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uieditmenuinteraction/updatevisiblemenuposition(animated:)"
---

# updateVisibleMenuPosition(animated:)

Updates the position of the currently visible menu with an option to animate the action.

## Declaration

```swift
func updateVisibleMenuPosition(animated: Bool)
```

## Parameters

- `animated`: YES to animate the transition to the new position; NO to make the transition immediate.

## Discussion

Discussion You use this method to update the location of the menu. This method calls editMenuInteraction(_:targetRectFor:) and updates the position of the menu using the position the delegate returns. The method has no effect if no menu is present.

## See Also

### Managing edit menu interactions

- [delegate](uikit/uieditmenuinteraction/delegate.md)
- [presentEditMenu(with:)](uikit/uieditmenuinteraction/presenteditmenu(with:).md)
- [reloadVisibleMenu()](uikit/uieditmenuinteraction/reloadvisiblemenu().md)
- [dismissMenu()](uikit/uieditmenuinteraction/dismissmenu().md)
- [location(in:)](uikit/uieditmenuinteraction/location(in:).md)
