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.
This commit is contained in:
Arkadiusz Fal
2026-04-13 21:13:58 +02:00
parent 3c7581de1a
commit d62ba1e143
2 changed files with 3 additions and 1 deletions

View File

@@ -54,8 +54,10 @@ struct VideoListContent<Content: View>: View {
if listStyle == .inset {
list
#if !os(tvOS)
.background(ListBackgroundStyle.card.color)
.clipShape(RoundedRectangle(cornerRadius: cardCornerRadius))
#endif
.padding(.horizontal, cardHorizontalPadding)
.padding(.bottom, bottomPadding)
} else {

View File

@@ -98,7 +98,7 @@ struct VideoListRow<Content: View>: View {
.fill(Color(nsColor: .separatorColor))
.frame(height: 1)
.padding(.leading, dividerLeadingPadding)
#else
#elseif !os(tvOS)
Divider()
.padding(.leading, dividerLeadingPadding)
#endif