A test project to interact with the C and C++ compatibility of Swift for using Raylib
  • C++ 64.4%
  • C 35.5%
Find a file
2026-06-06 23:12:27 +02:00
.vscode Init project 2026-03-22 14:38:06 +01:00
Sources Fixed the WASM build 2026-03-26 17:03:09 +01:00
wasi_extra Updated swift from 6.2.4 to 6.3 2026-03-25 22:16:41 +01:00
.gitignore Updated .gitignore rules 2026-03-26 16:51:13 +01:00
.swift-version Upgraded swift version to 6.3.2 2026-06-06 23:11:25 +02:00
LICENSE Initial commit 2026-03-22 11:55:16 +01:00
Makefile Updated swift wasm sdk to 6.3.2 2026-06-06 23:12:27 +02:00
Package.swift Updated Package.swift for ImGui 2026-03-26 16:51:02 +01:00
README.md Upgraded swift version to 6.3.2 2026-06-06 23:11:25 +02:00

Swift, C, and Raylib

A test project for my blog post "Testing the Swift C compatibility with Raylib".

Build

Make sure you installed:

To run on macOS: make run-mac

To run using WASI: make run-wasm

Update (26th of March)

Based on some cricisms over my blog post I included Dear ImGui as a dependency of this project to demonstrate how easy it is to use a C++ codebase in a Swift project.

The ImGui integration is currently not in the WASM build.