<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentInteractionController/presentOpenInMenu(from:in:animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDocumentInteractionController(im)presentOpenInMenuFromRect:inView:animated:"
  },
  "title" : "presentOpenInMenu(from:in:animated:)"
}
-->

# presentOpenInMenu(from:in:animated:)

Displays a menu for opening the document and anchors that menu to the specified view.

```
func presentOpenInMenu(from rect: CGRect, in view: UIView, animated: Bool) -> Bool
```

## Parameters

`rect`

The location (in the coordinate system of `view`) at which to anchor the menu.

`view`

The view from which to display the menu.

`animated`

Specify <doc://com.apple.documentation/documentation/Swift/true> to animate the appearance of the menu or <doc://com.apple.documentation/documentation/Swift/false> to display it immediately.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if this method was able to display the menu or <doc://com.apple.documentation/documentation/Swift/false> if it was not.

## Discussion

This method is similar to the [`presentOptionsMenu(from:in:animated:)`](/documentation/UIKit/UIDocumentInteractionController/presentOptionsMenu(from:in:animated:)) method, but presents a menu restricted to a list of apps capable of opening the current document. This determination is made based on the document type (as indicated by the [`uti`](/documentation/UIKit/UIDocumentInteractionController/uti) property) and on the document types supported by the installed apps. To support one or more document types, an app must register those types in its `Info.plist` file using the `CFBundleDocumentTypes` key.

If there are no registered apps that support opening the document, the document interaction controller does not display a menu.

This method displays the options menu asynchronously. The document interaction controller dismisses the menu automatically when the user selects an appropriate option. You can also dismiss it programmatically using the [`dismissMenu(animated:)`](/documentation/UIKit/UIDocumentInteractionController/dismissMenu(animated:)) method.

---

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)