Skip to content

Commit 2ee78a4

Browse files
committed
Fix CGPath ref issue
1 parent 6c85847 commit 2ee78a4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Sources/OpenCoreGraphics/CGPath.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public import Foundation
99

1010
/// A graphics path is a mathematical description of a series of shapes or lines.
11-
public struct CGPath {
11+
public final class CGPath {
1212

1313
public typealias Element = PathElement
1414

@@ -20,6 +20,14 @@ public struct CGPath {
2020
}
2121
}
2222

23+
public final class CGPathRef {
24+
public var path: CGPath
25+
26+
public init(path: CGPath) {
27+
self.path = path
28+
}
29+
}
30+
2331
// MARK: - Supporting Types
2432

2533
/// A path element.

0 commit comments

Comments
 (0)