devxoul / Then

✨ Super sweet syntactic sugar for Swift initializers
MIT License
4.16k stars 290 forks source link

Fix for CoreGraphics not being available on Linux #80

Closed Noobish1 closed 4 years ago

Noobish1 commented 4 years ago

I'm using this library in a Vapor project which needs to run on Linux and I found that Then won't build on Linux because CoreGraphics isn't available so I've wrapped all CoreGraphics import and all the CG* extensions in #if !os(Linux) checks.

Noobish1 commented 4 years ago

The CI issues don't seem to be related to my change, it's failing to find simulators.

devxoul commented 4 years ago

Thanks for your contribution!