---
title: canCollapseFromWindowResize
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssplitviewitem/cancollapsefromwindowresize
---

# canCollapseFromWindowResize

A Boolean value that determines whether a window resize can collapse the child view controller that corresponds to the split view item.

## Declaration

```swift
var canCollapseFromWindowResize: Bool { get set }
```

## Discussion

Discussion This can differ from canCollapse to allow divider collapsing but not windows resize collapsing, or vice versa. The default value of this property is true for Sidebars and false for Inspectors. note: Setting canCollapse for sidebars resets this value to that new value.

## See Also

### Collapsing and expanding the item

- [isCollapsed](appkit/nssplitviewitem/iscollapsed.md)
- [canCollapse](appkit/nssplitviewitem/cancollapse.md)
- [collapseBehavior](appkit/nssplitviewitem/collapsebehavior-swift.property.md)
- [NSSplitViewItem.CollapseBehavior](appkit/nssplitviewitem/collapsebehavior-swift.enum.md)
- [isSpringLoaded](appkit/nssplitviewitem/isspringloaded.md)
