From e5d93909df61644d816af461d9fd1254e13dad77 Mon Sep 17 00:00:00 2001 From: Alisa Mylnikova Date: Fri, 29 May 2020 12:24:22 +0700 Subject: [PATCH] More fixes for mac --- Source/platform/iOS/Common_iOS.swift | 6 ++++++ Source/platform/macOS/Common_macOS.swift | 6 ++++++ 2 files changed, 12 insertions(+) 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