mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Merge pull request #703 from f3dm76/fix/some-warnings
Fix some warnings
This commit is contained in:
commit
cfb97d6f73
@ -100,7 +100,7 @@ extension UIScreen {
|
||||
}
|
||||
|
||||
extension UIBezierPath {
|
||||
var usesEvenOddFillRule: Bool {
|
||||
var mUsesEvenOddFillRule: Bool {
|
||||
return self.usesEvenOddFillRule
|
||||
}
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ extension NSWindow {
|
||||
}
|
||||
|
||||
extension NSBezierPath {
|
||||
var usesEvenOddFillRule: Bool {
|
||||
var mUsesEvenOddFillRule: Bool {
|
||||
return self.windingRule == .evenOdd
|
||||
}
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ public extension Node {
|
||||
extension MBezierPath {
|
||||
|
||||
public func toMacaw() -> Path {
|
||||
let fillRule: FillRule = self.usesEvenOddFillRule ? .evenodd : .nonzero
|
||||
let fillRule: FillRule = self.mUsesEvenOddFillRule ? .evenodd : .nonzero
|
||||
return self.cgPath.toMacaw(fillRule: fillRule)
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@ extension CGPath {
|
||||
}
|
||||
|
||||
var segments = [PathSegment]()
|
||||
self.forEach(body: { (element: CGPathElement) in
|
||||
self.forEach { (element: CGPathElement) in
|
||||
|
||||
let segment: PathSegment
|
||||
switch element.type {
|
||||
@ -196,7 +196,7 @@ extension CGPath {
|
||||
fatalError("Unknown element type: \(element.type)")
|
||||
}
|
||||
segments.append(segment)
|
||||
})
|
||||
}
|
||||
|
||||
return Path(segments: segments, fillRule: .nonzero)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user