---
title: contentSize
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopover/contentsize
---

# contentSize

The content size of the popover.

## Declaration

```swift
var contentSize: NSSize { get set }
```

## Discussion

Discussion The popover’s content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will cause the popover to animate while it is shown if the animates property is true. This property is exposed as a read-only binding.

## See Also

### Managing a Popover’s Appearance

- [appearance](appkit/nspopover/appearance-swift.property.md)
- [effectiveAppearance](appkit/nspopover/effectiveappearance.md)
- [animates](appkit/nspopover/animates.md)
- [isShown](appkit/nspopover/isshown.md)
- [isDetached](appkit/nspopover/isdetached.md)
