How to remove the left and right Padding of a List in SwiftUI? Every List i create has borders to the leading and trailing of a cell.
What modifier should I add to r
You should call
.listRowInsets()
for row, like this:
List(items) { YoursRowView() .listRowInsets(EdgeInsets(top: 0, leading: 10, bottom: 0, trailing: 10)) }