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

# preferredMinimumSize

For a view controller that is part of an app extension, the smallest allowable size for the app extension’s primary view, in screen units.

```
var preferredMinimumSize: NSSize { get }
```

## Discussion

An app extension should return the minimum dimensions its primary view can accommodate, based on the items the app extension has been sent. By default, the value of this property is a small but non-empty size.

## See Also

[`preferredContentSize`](/documentation/AppKit/NSViewController/preferredContentSize)

The desired size of the view controller’s view, in screen units.



---

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)