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

# splitView(_:shouldHideDividerAt:)

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

## Declaration

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

## Parameters

- `splitView`: The split view that sends the message.
- `dividerIndex`: The zero-based index of the divider.

## Return Value

Return Value true if the user can drag the divider off the edge of the split view, resulting in it not being visible.

## Discussion

Discussion If a split view has no delegate, or if its delegate doesn’t respond to this message, the split view behaves as if it has a delegate that returns false when it receives this message.

## See Also

### Configuring and Drawing View Dividers

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