I've created a simple List as below, but there are extra separators below it.
List {
Text("Item 1")
Text("Item 2")
Text("Item 3")
}
Result:
I've tried embedding the List inside a VStack and adding Spacer() like below code but it's not working properly. It removes about half of the empty cells.
VStack{
List {
Text("Item 1")
Text("Item 2")
Text("Item 3")
}
Spacer()
}
How would I remove these extra separators in SwiftUI?




