1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-08-15 08:00:31 +03:00

Fix some warnings

This commit is contained in:
Alisa Mylnikova 2020-06-11 12:31:18 +07:00
parent 8319462d75
commit 7e695e30c4
3 changed files with 5 additions and 5 deletions

View File

@ -100,7 +100,7 @@ extension UIScreen {
}
extension UIBezierPath {
var usesEvenOddFillRule: Bool {
var mUsesEvenOddFillRule: Bool {
return self.usesEvenOddFillRule
}
}

View File

@ -185,7 +185,7 @@ extension NSWindow {
}
extension NSBezierPath {
var usesEvenOddFillRule: Bool {
var mUsesEvenOddFillRule: Bool {
return self.windingRule == .evenOdd
}
}

View File

@ -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)
}