tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
690 stars 66 forks source link

[RFC] C bindings #84

Open jslegendre opened 2 years ago

jslegendre commented 2 years ago

C bindings for use with plain C, Objective-C, and interfacing with other languages which do not have a Swift FFI.

To build and run the C example you must first run swift build in the project directory. This will resolve all external dependencies. Then open the Xcode project and proceed as usual.

I am not a Swift expert so please feel free to point out any oddities in the glue code as well as the API in general.