Does anyone know the correct way to scroll the NSScrollView to the top? I was looking for an equivalent to the UIView\'s scrollToTop method.
This is what I have so far,
The previous solutions scroll to the bottom when translating to Swift for Mac OS. The y coordinate direction is flipped on Mac OS and iOS.
Swift 3 Solution for Mac OS:
scrollView.documentView?.scroll(NSPoint.zero)