Skip to content

Experiments in getting SwiftUI + SpriteKit + macOS to play nice together

Notifications You must be signed in to change notification settings

SaganRitual/SSMExperiments

Repository files navigation

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

About

Experiments in getting SwiftUI + SpriteKit + macOS to play nice together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages