AdaEngine/box2d-swift
The box2d bridging to Swift
How to use
- Add package as dependency to your project
.package("https://github.com/SpectralDragon/box2d-swift", .branch("main")) - Add target
box2dto your target - Add this code to your target:
// For Swift 5.6
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-enable-cxx-interop"])
]
// For Swift 5.7 and higher
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-enable-experimental-cxx-interop"])
]- Enjoy!
Package Metadata
Repository: AdaEngine/box2d-swift
Stars: 4
Forks: 1
Open issues: 0
Default branch: main
Primary language: c++
README: README.md