<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSplitViewItem/CollapseBehavior-swift.enum/useConstraints",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSSplitViewItemCollapseBehavior@NSSplitViewItemCollapseBehaviorUseConstraints"
  },
  "title" : "NSSplitViewItem.CollapseBehavior.useConstraints"
}
-->

# NSSplitViewItem.CollapseBehavior.useConstraints

The item collapses and expands using a constraint animation, with a constraint priority of the item’s holding priority.

```
case useConstraints
```

## Discussion

This collapse behavior may result in a partial internal content resize and window resize, and doesn’t affect whether the window stays onscreen. You can use external constraints to adjust how the animation affects the item, its sibling items, and the window’s size and position.

---

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)