---
title: "drawDivider(in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssplitview/drawdivider(in:)"
---

# drawDivider(in:)

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

## Declaration

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

## Parameters

- `rect`: The entire divider rectangle in the split view’s flipped coordinate system.

## Discussion

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

## See Also

### Configuring and Drawing Dividers

- [dividerStyle](appkit/nssplitview/dividerstyle-swift.property.md)
- [NSSplitView.DividerStyle](appkit/nssplitview/dividerstyle-swift.enum.md)
- [dividerColor](appkit/nssplitview/dividercolor.md)
- [dividerThickness](appkit/nssplitview/dividerthickness.md)
