diff --git a/Source/platform/iOS/Common_iOS.swift b/Source/platform/iOS/Common_iOS.swift index 219342fe..9e2f21e6 100644 --- a/Source/platform/iOS/Common_iOS.swift +++ b/Source/platform/iOS/Common_iOS.swift @@ -99,4 +99,10 @@ extension UIScreen { } } +extension UIBezierPath { + var usesEvenOddFillRule: Bool { + return self.usesEvenOddFillRule + } +} + #endif diff --git a/Source/platform/macOS/Common_macOS.swift b/Source/platform/macOS/Common_macOS.swift index b987e957..d870d1f2 100644 --- a/Source/platform/macOS/Common_macOS.swift +++ b/Source/platform/macOS/Common_macOS.swift @@ -184,4 +184,10 @@ extension NSWindow { } } +extension NSBezierPath { + var usesEvenOddFillRule: Bool { + return self.windingRule == .evenOdd + } +} + #endif