---
title: drawKnob()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsscroller/drawknob()
---

# drawKnob()

Draws the knob.

## Declaration

```swift
func drawKnob()
```

## Discussion

Discussion You should never need to invoke this method directly, but may wish to override it to customize the appearance of the knob.

## See Also

### Related Documentation

- [rect(for:)](appkit/nsscroller/rect(for:).md)

### Drawing Scroller Parts

- [drawArrow(_:highlight:)](appkit/nsscroller/drawarrow(_:highlight:).md)
- [drawKnobSlot(in:highlight:)](appkit/nsscroller/drawknobslot(in:highlight:).md)
- [highlight(_:)](appkit/nsscroller/highlight(_:).md)
