Little wrap around box2d library.
- Add package as dependency to your project
.package("https://github.com/SpectralDragon/box2d-swift", .branch("main"))
- Add target
box2d
to 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!