<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPopoverBackgroundViewMethods/contentViewInsets()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIPopoverBackgroundViewMethods(cm)contentViewInsets"
  },
  "title" : "contentViewInsets()"
}
-->

# contentViewInsets()

The insets for the content portion of the popover.

```
static func contentViewInsets() -> UIEdgeInsets
```

## Discussion

Consider your popover background view without the arrow, and the insets in this property represent the distance from a given edge of your background content to the corresponding edge of the popover’s content view. (This edges of the background content should be flush with the frame rectangle of your view, except on the side containing the arrow, of course.) The popover controller uses these values (in combination with the value returned by the [`arrowHeight()`](/documentation/UIKit/UIPopoverBackgroundViewMethods/arrowHeight()) method) to determine where to position the popover content view. Because the arrow height is accounted for separately, your implementation of this method should return a set of constant values.

## See Also

[`arrowHeight()`](/documentation/UIKit/UIPopoverBackgroundViewMethods/arrowHeight())

The height of the arrow (measured in points) from its base to its tip.



---

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)