I tried the obvious things like using `.onContinuousHover { NSCursur.arrow.set() }`, but it’s just fighting with AppKit. It flickers between the iBeam and arrow cursor constantly when dragging the mouse over the view.
It seems clear that the solution is to drop down to AppKit level instead of SwiftUI.
No idea if this will work, but I think using an `NSView` in the background of the SwiftUI overlay that explicitly registers an `.arrow` cursor should do the trick.
Login to reply
Replies (1)
I probably need to call the super keyword on `resetCursorRects()` to inherit the default cursor functionality and then use `addCursorRect(bounds, cursor: .arrow)` to register the area where the cursor should be an arrow.


Apple Developer Documentation
resetCursorRects() | Apple Developer Documentation
Overridden by subclasses to define their default cursor rectangles.

Apple Developer Documentation
addCursorRect(_:cursor:) | Apple Developer Documentation
Establishes the cursor to be used when the mouse pointer lies within a specified region.