ExploreTrendingAnalytics
Nostr Archives
ExploreTrendingAnalytics
Frederik Handberg14d ago
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.
💬 1 replies

Replies (1)

Frederik Handberg14d ago
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. https://developer.apple.com/documentation/appkit/nsview/r…) https://developer.apple.com/documentation/appkit/nsview/a…)
0000 sats