Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 699 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 699 Bytes

SwiftUI + SpriteKit + macOS Experiments

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 IMAGE ALT TEXT HERE