ifdef for macos

This commit is contained in:
Jackson Harper
2023-11-15 14:54:57 +08:00
parent 3246bea4d8
commit 657ffbc0ce

View File

@ -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
}