From 2dcfe52bfb7ff7fd79a5530ab05751c0121718c7 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 14 Apr 2026 19:18:24 +0200 Subject: [PATCH] Fix broken modifier chain around playback speed menu style --- .../Player/QualitySelectorView+Sections.swift | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Yattee/Views/Player/QualitySelectorView+Sections.swift b/Yattee/Views/Player/QualitySelectorView+Sections.swift index 22baa1e6..9391f599 100644 --- a/Yattee/Views/Player/QualitySelectorView+Sections.swift +++ b/Yattee/Views/Player/QualitySelectorView+Sections.swift @@ -343,11 +343,7 @@ extension QualitySelectorView { .fixedSize(horizontal: true, vertical: false) .frame(minWidth: 80) } - #if os(tvOS) - // Default menu style on tvOS renders a focusable bordered pill. - #else - .menuStyle(.borderlessButton) - #endif + .playbackSpeedMenuStyle() Button { if let newRate = nextRate() { @@ -822,3 +818,14 @@ struct TVSettingsRowButtonStyle: ButtonStyle { } } #endif + +private extension View { + @ViewBuilder + func playbackSpeedMenuStyle() -> some View { + #if os(tvOS) + self + #else + self.menuStyle(.borderlessButton) + #endif + } +}