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

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

## Discussion

By default, [`NSSplitViewController`](/documentation/AppKit/NSSplitViewController) hides the first and last dividers if their outer neighbor is in a collapsed state.

---

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)