---
title: "splitView(_:shouldHideDividerAt:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssplitviewcontroller/splitview(_:shouldhidedividerat:)"
---

# splitView(_:shouldHideDividerAt:)

Allows the split view controller to determine whether the user can drag a divider or adjust it off the edge of the split view.

## Declaration

```swift
@MainActor func splitView(_ splitView: NSSplitView, shouldHideDividerAt dividerIndex: Int) -> Bool
```

## Discussion

Discussion By default, NSSplitViewController hides the first and last dividers if their outer neighbor is in a collapsed state.

## See Also

### Configuring and Drawing View Dividers

- [splitView(_:effectiveRect:forDrawnRect:ofDividerAt:)](appkit/nssplitviewcontroller/splitview(_:effectiverect:fordrawnrect:ofdividerat:).md)
- [splitView(_:additionalEffectiveRectOfDividerAt:)](appkit/nssplitviewcontroller/splitview(_:additionaleffectiverectofdividerat:).md)
