How to disable scrolling in NSTextView for macOS
Issue #733
NSTextView
has this handy method to make scrollable NSTextView NSTextView.scrollableTextView()
. The solution is to get to the responder outside enclosing NSScrollView
, in my case it is the SwiftUI hosting view
1 | class DisabledScrollTextView: NSTextView { |
Then we can construct with our new DisabledScrollTextView.scrollableTextView
Updated at 2020-12-31 07:45:19