does anyone know of a way to remove the space between sections of a list in Swiftui? I tried inserting the footer as an EmptyView but it doesn't work. This problem occurs from iOS 16 onwards because on 15 it was enough to insert this line in the init: UITableView.appearance().sectionFooterHeight = 0
List {
ForEach(servicesEnv.dictionary.keys.sorted(), id:\.self) { key in
Section(header: SectionHeader(sectionName: "\(key)"),
footer: EmptyView()) {
MyView()
}
}
}
}
}
.listStyle(GroupedListStyle())
.listRowInsets(EdgeInsets())
– Damnationstruct ContentView
that can be pated into Xcode. Please read minimal reproducible example. – Cartridge