Closed chriseidhof closed 6 years ago
I'm surprised this caused a problem, given I use KDTree
in this Server-Side-Swift project.
On Linux CGPoint
is part of the swift foundation.
This should work:
#if os(OSX) || os(iOS) || os(tvOS) || os(watchOS)
import CoreGraphics
#endif
import Foundation
(Doing the same here)
On Linux CGPoint
is part of the swift foundation.
PS: I'll also create a PR to run tests on linux-travis like in this project.
I tried creating an Xcode project out of this
swift package generate-xcodeproj
and it complained aboutCGPoint
not being in Foundation. So I think we should do conditional compilation... WDYT?