---
title: contentMaxSize
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/contentmaxsize
---

# contentMaxSize

The maximum size of the window’s content view in the window’s base coordinate system.

## Declaration

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

## Discussion

Discussion The maximum size constraint is enforced for resizing by the user as well as for the setContentSize(_:) method and the setFrame... methods other than setFrame(_:display:) and setFrame(_:display:animate:). This method takes precedence over the maxSize property.

## See Also

### Sizing Content

- [contentAspectRatio](appkit/nswindow/contentaspectratio.md)
- [contentMinSize](appkit/nswindow/contentminsize.md)
- [setContentSize(_:)](appkit/nswindow/setcontentsize(_:).md)
- [contentResizeIncrements](appkit/nswindow/contentresizeincrements.md)
- [contentLayoutGuide](appkit/nswindow/contentlayoutguide.md)
- [contentLayoutRect](appkit/nswindow/contentlayoutrect.md)
- [maxFullScreenContentSize](appkit/nswindow/maxfullscreencontentsize.md)
- [minFullScreenContentSize](appkit/nswindow/minfullscreencontentsize.md)
