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

Merge pull request #703 from f3dm76/fix/some-warnings

Fix some warnings
This commit is contained in:
Yuri Strot 2020-06-16 17:05:38 +07:00 committed by GitHub
commit cfb97d6f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
}