Skip to content

Commit 49e2443

Browse files
committed
Only compile OS class on Darwin
1 parent fb62ed9 commit 49e2443

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/apple/Sources/OS.swift.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if canImport(Darwin)
12
import Foundation
23
import UserNotifications
34

@@ -56,3 +57,4 @@ public class OS {
5657
)
5758
}
5859
}
60+
#endif

0 commit comments

Comments
 (0)