This demo show how to make glfw available to Swift by Swift Package Manager.
-
The demo requires Swift 4.2 for the brand new system library targets feature. You must have Xcode 10 or the 4.2 toolchain installed and set as active.
-
glfw3 and pkg-config must to be installed before building the example, or generating an Xcode project.
$ brew install glfw3 # macOS
Call swift run
to build and run the example