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

# minContentSize

The minimum content size.

```
var minContentSize: NSSize { get }
```

## Discussion

The containing [`NSColorPanel`](/documentation/AppKit/NSColorPanel) object does not allow the color picker to be made smaller than this size.

Override this property’s getter method to return a minimum size for the color picker’s content area. The default implementation obtains the minimum content size from the view-autoresizing behavior specified for the color picker. You should not have to override this method if you properly set up the color picker’s auto-sizing attributes in Interface Builder.

---

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)