In SwiftUI 3, I used to be able to customize the spacing between sections using this:
init() {
UITableView.appearance().sectionFooterHeight = 0
UITableView.appearance().sectionHeaderTopPadding = 0
UITableView.appearance().sectionHeaderHeight = 8
}
I need these sections because it's the only way to have swipe actions rendered with rounded corners (FB10233033). While this solution isn't ideal, it's the only way to use the native swipe actions and have this type of cells:
On SwiftUI 4, Lists are now using UICollectionView and the code in the custom initializer doesn't work anymore.