Skip to content

Combining SDL3 with SwiftUI

github.com/gitdave
3 pointsseaonion1 comment
On HN

Comments

SDL3 and SwiftUI both assume they own the app lifecycle. When they coexist on iOS/tvOS/macOS, three specific collisions occur: SDL steals the keyboard, game controller input leaks through to the game while a dialog is open, and the B button dismisses dialogs without notifying the app. This is a minimal working example with fixes for all three.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.