I have a curious situation. I have two lists that both use ForEach to iterate over several ListItem structs. In the first view, the ListItems seem to go out closer to the horizontal edges than in the second view. Both use similar code like this:
var body: some View {
NavigationView {
List {
ForEach(self.tvm.filteredTrucks, id:\.id) { truck in
NavigationLink (destination: TruckDetail(truck: truck)) {
TruckListItem(truck: truck, truckLogos: tvm.truckLogos)
}
}
}
}
}
but the results are different. See attached images.
Notice the right and left borders as well as the separator line lengths. For the life of me I can't figure out why they are different.
In another app, I create a list the same way, and I see the same horizontal spacing issue...
...This time with a different colored background. Anyone seen this before and know what is going on?