In iOS 13, some native Apple apps use a list style I am struggling to recreate. It's basically a List within a Form containing Sections and some entries.
The only difference is that each Section has padding to the left and right side and a corner radius around the edges.
Here is an example from the Home app of what I would like to achieve (also used in the Timer tab in the Clock app):
Applying the .padding()-Modifier to the Form doesn't work.
struct ContentView: View {
var body: some View {
Form {
Section {
Text("foo")
Text("bar")
}
Section {
Text("foo")
}
Section {
Text("bar")
}
}
}
}
I am wondering if it is at all possible in SwiftUI or if this is just some UIKit-adjustment on a UITableViewCell.

