<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/minSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(py)minSize"
  },
  "title" : "minSize"
}
-->

# minSize

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

```
var minSize: NSSize { get set }
```

## Discussion

The minimum size constraint is enforced for resizing by the user as well as for the `setFrame...` methods other than [`setFrame(_:display:)`](/documentation/AppKit/NSWindow/setFrame(_:display:)) and [`setFrame(_:display:animate:)`](/documentation/AppKit/NSWindow/setFrame(_:display:animate:)).

The [`NSWindow`](/documentation/AppKit/NSWindow) method takes precedence over this property.

---

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)