mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user