@@ -24,6 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
+#if os(macOS) || os(watchOS)
+
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import AppKit
#endif
@@ -93,3 +95,4 @@ enum GraphicsContext {
}
+#endif