From d14d685964b49b04e98c1e6f7a16271e2871fa6e Mon Sep 17 00:00:00 2001 From: CodyPChristian Date: Fri, 28 Aug 2026 02:37:47 -0400 Subject: [PATCH] fix(ios): clear the List row fill so a declared list background shows ListBackgroundModifier hides the grouped scroll background when a list node declares one, but SwiftUI also gives every row an opaque system fill. That row fill paints over the list's background, so `` still rendered as a white sheet with the declared colour visible only at the very top and bottom edges. Clearing the row background lets the list's colour show while each row still paints whatever its own content declares. Android is unaffected: Compose has no implicit row fill. --- resources/ios/NativeUIListRenderer.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/ios/NativeUIListRenderer.swift b/resources/ios/NativeUIListRenderer.swift index 2e710cd..7708bca 100644 --- a/resources/ios/NativeUIListRenderer.swift +++ b/resources/ios/NativeUIListRenderer.swift @@ -114,6 +114,11 @@ struct NativeUIListRenderer: View { .equatable() .frame(maxWidth: .infinity, alignment: .leading) .listRowInsets(EdgeInsets()) + // Rows carry SwiftUI's opaque system fill, which paints over the + // list's own background — so hiding the scroll background via + // ListBackgroundModifier still left a white sheet on a themed + // screen. Clear the row and let its content decide. + .listRowBackground(Color.clear) // Drive dividers from the bottom edge only; always hide the top // edge. The top separator renders solely on a section's first row, // so hiding it removes the stray full-width line that otherwise