Thank you! Your explanation about .listRowSeparator(.hidden) being row-specific (and not global to the entire List) was exactly what I needed.
I was only applying:
.listRowSeparator(.hidden)
.listSectionSeparator(.hidden)
to the List itself, assuming it would hide all separators automatically — but as you pointed out, SwiftUI requires the modifier to be applied on every row.
What I did to fix it
I added:
.listRowSeparator(.hidden)
directly to each transaction row inside my custom content view:
ForEach(...) { ... }
.listRowSeparator(.hidden)
Then I also added it to:
the header Section for each day
the top block inside ReportMensileView (statistics + month picker + total + picker)
This ensured that every row rendered by the List has the separator explicitly hidden.
Result
All the “mysterious horizontal lines” immediately disappeared, without breaking:
native List scrolling
swipe-to-delete
custom rounded card backgrounds
grouped Sections
Everything now renders perfectly clean.
Thanks again for pointing me in the right directio
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: