diff --git a/Shared/Views/VideoContextMenuView.swift b/Shared/Views/VideoContextMenuView.swift index 14b87b28..2bb1b23c 100644 --- a/Shared/Views/VideoContextMenuView.swift +++ b/Shared/Views/VideoContextMenuView.swift @@ -34,19 +34,19 @@ struct VideoContextMenuView: View { var body: some View { ZStack { #if os(iOS) - // Conditional overlay to block taps on underlying views - if isOverlayVisible { - Color.clear - .contentShape(Rectangle()) - .onTapGesture { - // Dismiss overlay without triggering other interactions - isOverlayVisible = false - } - .ignoresSafeArea() // Ensure overlay covers the entire screen - .accessibilityLabel("Dismiss context menu") - .accessibilityHint("Tap to close the context") - .accessibilityAddTraits(.isButton) - } + // Conditional overlay to block taps on underlying views + if isOverlayVisible { + Color.clear + .contentShape(Rectangle()) + .onTapGesture { + // Dismiss overlay without triggering other interactions + isOverlayVisible = false + } + .ignoresSafeArea() // Ensure overlay covers the entire screen + .accessibilityLabel("Dismiss context menu") + .accessibilityHint("Tap to close the context") + .accessibilityAddTraits(.isButton) + } #endif if video.videoID != Video.fixtureID {