This is code of my List:
import SwiftUI
struct PaymentScreen: View {
init() {
UITableView.appearance().separatorStyle = .none
UITableViewCell.appearance().backgroundColor = .black // I can change color of this paddings here
}
var body: some View {
return VStack (alignment: .center) {
List (Terminal.terminals, id: \.self.distance) { terminal in
PayTerminalAdapter(terminal: terminal).background(Color.white)
}
}
}
}
Screenshot of my list:
I can't remove black leading and trailing paddings and paddings between list elements. When I use ForEach (I have very long array of terminals) - i don't have problem with paddings, but it works so slowly, therefore ForEach is a bad choice for me. How can i remove black paddings in List?