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

# contentMinSize

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

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

## Discussion

The minimum size constraint is enforced for resizing by the user as well as for the [`setContentSize(_:)`](/documentation/AppKit/NSWindow/setContentSize(_:)) method and the `setFrame...` methods other than [`setFrame(_:display:)`](/documentation/AppKit/NSWindow/setFrame(_:display:)) and [`setFrame(_:display:animate:)`](/documentation/AppKit/NSWindow/setFrame(_:display:animate:)). This method takes precedence over the [`minSize`](/documentation/AppKit/NSWindow/minSize) 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)