diff --git a/Sources/OversizeUI/Controls/Surface/Surface.swift b/Sources/OversizeUI/Controls/Surface/Surface.swift index 9fade58..3e4b68f 100644 --- a/Sources/OversizeUI/Controls/Surface/Surface.swift +++ b/Sources/OversizeUI/Controls/Surface/Surface.swift @@ -63,9 +63,11 @@ public struct Surface: View { .contentShape(Rectangle()) } .buttonStyle(SurfaceButtonStyle()) - .onHover { hover in - isHover = hover - } + #if os(macOS) + .onHover { hover in + isHover = hover + } + #endif } private var surface: some View {