<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSplitViewDelegate/splitView(_:shouldHideDividerAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSSplitViewDelegate(im)splitView:shouldHideDividerAtIndex:"
  },
  "title" : "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.

```
@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

<doc://com.apple.documentation/documentation/Swift/true> if the user can drag the divider off the edge of the split view, resulting in it not being visible.

## 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 <doc://com.apple.documentation/documentation/Swift/false> when it receives this message.

---

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)