Skip to content

Commit

Permalink
Only compile OS class on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate committed Feb 15, 2024
1 parent fb62ed9 commit 49e2443
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/apple/Sources/OS.swift.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if canImport(Darwin)
import Foundation
import UserNotifications

Expand Down Expand Up @@ -56,3 +57,4 @@ public class OS {
)
}
}
#endif

0 comments on commit 49e2443

Please sign in to comment.