From 657ffbc0ce0f7db489dac7c6c5a923b7e9b2f9bb Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 15 Nov 2023 14:54:57 +0800 Subject: [PATCH] ifdef for macos --- apple/OmnivoreKit/Sources/App/Views/LabelsEntryView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/LabelsEntryView.swift b/apple/OmnivoreKit/Sources/App/Views/LabelsEntryView.swift index 07138b14f..836165558 100644 --- a/apple/OmnivoreKit/Sources/App/Views/LabelsEntryView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/LabelsEntryView.swift @@ -196,6 +196,7 @@ public struct LabelsEntryView: View { .frame(height: totalHeight) .frame(maxWidth: .infinity) .background(Color.extensionPanelBackground) + #if os(macOS) .onHover { isHovered in DispatchQueue.main.async { if isHovered { @@ -205,7 +206,8 @@ public struct LabelsEntryView: View { } } } - .cornerRadius(8) + #endif + .cornerRadius(8) .onAppear { textFieldFocused = true }