i'm trying to create List with GroupedListStyle. But when i provide a section without header there is empty space above the section. How to remove that empty space?
List {
Section(header: Text("Section 1")) {
Text("List 1 - Item 1")
Text("List 1 - Item 2")
Text("List 1 - Item 3")
}
Section(header: Text("Section 2")) {
Text("List 2 - Item 1")
Text("List 2 - Item 2")
Text("List 2 - Item 3")
}
}
.listStyle(.grouped)
I tried to provide negative padding. It working fine with ios 16+ devices. But in iOS 15 and iOS 14 negative padding is not taken.