From c364a566c78cfde80772601e66fc0027a4ff260f Mon Sep 17 00:00:00 2001 From: Alexandr Romanov Date: Sun, 3 Nov 2024 12:52:27 +0300 Subject: [PATCH] Fix tvOS build --- Sources/OversizeUI/Controls/Surface/Surface.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 {