scrollerWidth(for:scrollerStyle:)
Returns the width for scrollers of the receiving class for a given control size and scroller style.
Declaration
class func scrollerWidth(for controlSize: NSControl.ControlSize, scrollerStyle: NSScroller.Style) -> CGFloatParameters
- controlSize:
A control size.
- scrollerStyle:
A scroller style.
Return Value
The width for scrollers of the receiving class for controlSize and scrollerStyle.
Discussion
You should use this method in preference to scrollerWidthForControlSize:, which assumes a scroller style of NSScroller.Style.legacy, and scrollerWidth which in addition assumes a control size of NSRegularControlSize.