From d62ba1e143bfa85e17cd4970f4f41efe28395474 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 13 Apr 2026 21:13:58 +0200 Subject: [PATCH] Hide list row dividers and card clipping on tvOS Dividers inside rows conflict with the tvOS focus highlight effect. Remove dividers and the inset card background/clipShape on tvOS so the focus effect renders cleanly without visual artifacts. --- Yattee/Views/Components/VideoListContent.swift | 2 ++ Yattee/Views/Components/VideoListRow.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Yattee/Views/Components/VideoListContent.swift b/Yattee/Views/Components/VideoListContent.swift index f2573c94..024b0c74 100644 --- a/Yattee/Views/Components/VideoListContent.swift +++ b/Yattee/Views/Components/VideoListContent.swift @@ -54,8 +54,10 @@ struct VideoListContent: View { if listStyle == .inset { list + #if !os(tvOS) .background(ListBackgroundStyle.card.color) .clipShape(RoundedRectangle(cornerRadius: cardCornerRadius)) + #endif .padding(.horizontal, cardHorizontalPadding) .padding(.bottom, bottomPadding) } else { diff --git a/Yattee/Views/Components/VideoListRow.swift b/Yattee/Views/Components/VideoListRow.swift index 413f19b0..f13153d0 100644 --- a/Yattee/Views/Components/VideoListRow.swift +++ b/Yattee/Views/Components/VideoListRow.swift @@ -98,7 +98,7 @@ struct VideoListRow: View { .fill(Color(nsColor: .separatorColor)) .frame(height: 1) .padding(.leading, dividerLeadingPadding) - #else + #elseif !os(tvOS) Divider() .padding(.leading, dividerLeadingPadding) #endif