RFOverlayScrollView is an NSScrollView subclass that shows its NSScroller in iOS style even when a mouse is attached.
It does little changes to the NSScroller itself to make sure default behaviors like
- dragging too far
- scroller gets darker when the mouse is over the scroller
- scroller gets wider when scrolling with the trackpad and the mouse is over the scroller
stay as intended.
You know how to use CocoaPods, right?
- Drag the
RFOverlayScrollView/RFOverlayScrollView
folder into your project
- Change the class of your scroll view to
RFOverlayScrollView
- Change the class of the vertical slider to
RFOverlayScroller
Currently, only vertical sliders are supported.
RFOverlayScrollView is brought to you by Rheinfabrik.