Skip to content

Commit

Permalink
fix accidental deletion of conditonal compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfutrell committed Nov 3, 2020
1 parent a54c605 commit caf9900
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BezierKit/Library/PathComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
// Copyright © 2016 Holmes Futrell. All rights reserved.
//

#if canImport(CoreGraphics)
import CoreGraphics
#endif
import Foundation

@objc(BezierKitPathComponent) open class PathComponent: NSObject, Reversible, Transformable {
Expand Down Expand Up @@ -106,6 +108,7 @@ import Foundation
return self.orders[index]
}

#if canImport(CoreGraphics)
internal func appendPath(to mutablePath: CGMutablePath) {
mutablePath.move(to: self.startingPoint)
for i in 0..<self.numberOfElements {
Expand All @@ -130,6 +133,7 @@ import Foundation
}
}
}
#endif

required public init(points: [CGPoint], orders: [Int]) {
// TODO: I don't like that this constructor is exposed, but for certain performance critical things you need it
Expand Down

0 comments on commit caf9900

Please sign in to comment.