Skip to content

Commit d98d6d1

Browse files
committed
Exclude objc code path in Path.swift targeting android
1 parent e1c21fb commit d98d6d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BezierKit/Library/Path.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ open class Path: NSObject {
150150
return intersections
151151
}
152152

153-
#if os(WASI) || os(Linux)
154-
public convenience override init() {
153+
#if canImport(ObjectiveC)
154+
@objc public convenience override init() {
155155
self.init(components: [])
156156
}
157157
#else
158-
@objc public convenience override init() {
158+
public convenience override init() {
159159
self.init(components: [])
160160
}
161161
#endif

0 commit comments

Comments
 (0)