---
title: maxSize
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/maxsize
---

# maxSize

The maximum size to which the window’s frame (including its title bar) can be sized.

## Declaration

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

## Discussion

Discussion The maximum size constraint is enforced for resizing by the user as well as for the setFrame... methods other than setFrame(_:display:) and setFrame(_:display:animate:). Note that the window server limits window sizes to 10,000. The default maximum size of a window is {FLT_MAX, FLT_MAX} (FLT_MAX is defined in /usr/include/float.h). When the maximum size of a window has been set, there is no way to reset it other than by specifying this default maximum size. The contentMaxSize property takes precedence over this property.

## See Also

### Sizing Windows

- [frame](appkit/nswindow/frame.md)
- [setFrameOrigin(_:)](appkit/nswindow/setframeorigin(_:).md)
- [setFrameTopLeftPoint(_:)](appkit/nswindow/setframetopleftpoint(_:).md)
- [constrainFrameRect(_:to:)](appkit/nswindow/constrainframerect(_:to:).md)
- [cascadeTopLeft(from:)](appkit/nswindow/cascadetopleft(from:).md)
- [setFrame(_:display:)](appkit/nswindow/setframe(_:display:).md)
- [setFrame(_:display:animate:)](appkit/nswindow/setframe(_:display:animate:).md)
- [animationResizeTime(_:)](appkit/nswindow/animationresizetime(_:).md)
- [aspectRatio](appkit/nswindow/aspectratio.md)
- [minSize](appkit/nswindow/minsize.md)
- [isZoomed](appkit/nswindow/iszoomed.md)
- [performZoom(_:)](appkit/nswindow/performzoom(_:).md)
- [zoom(_:)](appkit/nswindow/zoom(_:).md)
- [resizeFlags](appkit/nswindow/resizeflags.md)
- [resizeIncrements](appkit/nswindow/resizeincrements.md)
