These packages are available as a package collection, usable in Xcode or SwiftPM.
Swift library for SDL 2 and 3
SDL3 in Swift
2 packages.