---
title: "drawArrow(_:highlight:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscroller/drawarrow(_:highlight:)"
---

# drawArrow(_:highlight:)

Draws the scroll button indicated by arrow, which is either NSScrollerIncrementArrow (the down or right scroll button) or NSScrollerDecrementArrow (up or left).

## Declaration

```swift
func drawArrow(_ whichArrow: NSScroller.Arrow, highlight flag: Bool)
```

## Discussion

Discussion If flag is true, the button is drawn highlighted; otherwise it’s drawn normally. You should never need to invoke this method directly, but may wish to override it to customize the appearance of scroll buttons. note: The drawArrow(_:highlight:) method is not invoked in macOS 10.7 and later.

## See Also

### Related Documentation

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

### Drawing Scroller Parts

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