Skip to content

Commit ee4997b

Browse files
committed
Guard CoreGraphics import with Apple OS check in NativeAPI+Convenience
Avoid picking up CrossSwift's CoreGraphics module via canImport(CoreGraphics) on Windows and Linux where NativeAPI does not depend on CrossSwift.
1 parent 0513b15 commit ee4997b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎bindings/swift/Sources/NativeAPI/NativeAPI+Convenience.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
#if canImport(CoreGraphics)
3+
#if os(macOS) || os(iOS)
44
import CoreGraphics
55
#endif
66

0 commit comments

Comments
 (0)