<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIEditMenuInteraction/updateVisibleMenuPosition(animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIEditMenuInteraction(im)updateVisibleMenuPositionAnimated:"
  },
  "title" : "updateVisibleMenuPosition(animated:)"
}
-->

# updateVisibleMenuPosition(animated:)

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

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

## Parameters

`animated`

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

## Discussion

You use this method to update the location of the menu. This method calls [`editMenuInteraction(_:targetRectFor:)`](/documentation/UIKit/UIEditMenuInteractionDelegate/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)