I've created a scrollable list of images as follows:
NavigationView {
List {
ForEach(landmarks) { landmark in
landmark.image(forSize: 200)
// some modifiers...
}
.navigationBarTitle(Text(category.rawValue))
}
This is the UI this code produces:

Now, I'd like to get rid of the line separators that List creates. Therefor, I replaced List with ScrollView. This is what the preview then shows:

How do I fix this?
I've seen this other similar question, but the accepted answer doesn't actually solve the problem, but introduces a fixed width.