ScrollViewPlus is a small library that provides some helpful extension and capabilities for working with NSScrollView
.
dependencies: [
.package(url: "https://github.com/ChimeHQ/ScrollViewPlus.git")
]
github "ChimeHQ/ScrollViewPlus"
Simple class to monitor the user-visible portion of an NSScrollView
document view.
An NSScroller
subclass that makes it possible to determine the overlay style's slot thickness and detect changes to it.
A class that can be used to observe the scroller overlay size and visibily changes. This makes use of some heuristics that aren't perfect, but the end result is quite good. Must be used in combination with ObservableScroller
, but does not enforce an NSScrollView
subclass requirement.
A very simple NSScrollView
subclass that will always use overlay style scrollers, regardless of user prefs or input device types.
A class that works around a pretty esoteric problem:
The scroll-position jumping will occur if this view contains an NSTextView
and:
NSTextView
's NSLayoutManager
NSTextView
is configured so text does not wrap to the view's boundsNSScrollView
has a vertical ruler presentWe'd love to hear from you! Get in touch via an issue or pull request.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
link |
Stars: 13 |
Last commit: 3 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics