Skip to content

Commit 174d839

Browse files
committed
Update CGPath API
1 parent acf39e0 commit 174d839

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/OpenCoreGraphics/CGPath.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ public class CGPath: Hashable {
2424
public func hash(into hasher: inout Hasher) {
2525
hasher.combine(elements)
2626
}
27+
28+
public var isEmpty: Bool {
29+
elements.isEmpty
30+
}
31+
32+
public func mutableCopy() -> CGMutablePath? {
33+
self as? CGMutablePath
34+
}
2735
}
2836

2937
/// For compatibility with CoreGraphics API.

0 commit comments

Comments
 (0)