<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSplitView/drawDivider(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSplitView(im)drawDividerInRect:"
  },
  "title" : "drawDivider(in:)"
}
-->

# drawDivider(in:)

Draws a divider between two of the split view’s subviews.

```
func drawDivider(in rect: NSRect)
```

## Parameters

`rect`

The entire divider rectangle in the split view’s flipped coordinate system.

## Discussion

If you override this method to use a custom style for the divider, you may need to change the size of the divider.

---

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)