<!--
{
  "availability" : [
    "iOS: 3.2.0 - 9.0.0",
    "iPadOS: 3.2.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPopoverController/present(from:in:permittedArrowDirections:animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPopoverController(im)presentPopoverFromRect:inView:permittedArrowDirections:animated:"
  },
  "title" : "present(from:in:permittedArrowDirections:animated:)"
}
-->

# present(from:in:permittedArrowDirections:animated:)

Displays the popover and anchors it to the specified location in the view.

```
func present(from rect: CGRect, in view: UIView, permittedArrowDirections arrowDirections: UIPopoverArrowDirection, animated: Bool)
```

## Parameters

`rect`

The rectangle in view at which to anchor the popover window.

`view`

The view containing the anchor rectangle for the popover.

`arrowDirections`

The arrow directions the popover is permitted to use. You can use this value to force the popover to be positioned on a specific side of the rectangle. However, it is generally better to specify [`any`](/documentation/UIKit/UIPopoverArrowDirection/any) and let the popover decide the best placement. You must not specify [`unknown`](/documentation/UIKit/UIPopoverArrowDirection/unknown) for this parameter.

`animated`

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

---

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)