Unsurprisingly, I struggle endlessly with getting apps to work on macOS when I try to combine SwiftUI and SpriteKit. This repo contains my latest and greatest attempts, which, shockingly enough, work pretty well. The main difficulty I've always had is in handling user input, but as of 2024.0429, I'm able to -- in a SwiftUI SpriteView on macOS! -- track mouse movement, dragging, clicking, and scroll wheel, which is enough for my purposes, at least for now.
I couldn't fit the demo in a gif, here's a 30-second YouTube video of it