Swift 5.2+ wrapper for SDL2.
Heavily work-in-progress, so use at your own risk. Things will change and evolve as I tackle more of SDL2.
See CSDL2 for bare C wrapper
*tested on Ubuntu 20.04 LTS and Mac OS 10.15.5
brew install sdl2 sdl2_image sdl2_ttf
If you are having issues with headers not found see CSDL2 > shim.h for paths.
Core functionality is there (Window, Renderer, Texture, Surface, Events)
API has nearly full coverage. I left out RW functions that need SDL_RWops wrapped. Also needs proper error handling.
Same as SDL_ttf, needs SDL_RWops wrapped. Which in the case of SDL_image is most of the functions, however you can create a Surface from an image file which covers 90% of the usage.
See SwiftSDL2Example