---
title: positioningRect
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopover/positioningrect
---

# positioningRect

The rectangle within the positioning view relative to which the popover should be positioned.

## Declaration

```swift
var positioningRect: NSRect { get set }
```

## Discussion

Discussion Popovers are positioned relative to a positioning view and are automatically moved when the location or size of the positioning view changes. Sometimes it is desirable to position popovers relative to a rectangle within the positioning view. In this case, you must update the positioningRect property whenever this rectangle changes. This property is exposed as a read-only binding.

## See Also

### Managing a Popover’s Position and Size

- [behavior](appkit/nspopover/behavior-swift.property.md)
- [show(relativeTo:of:preferredEdge:)](appkit/nspopover/show(relativeto:of:preferrededge:).md)
