How can I, without using Section, achieve a list that looks like this:
List with separated members --> This list has separated members
List with no separation --> This list has no separated members
Here is how the list is created, using Section:
List {
ForEach(item, id: \.self) { item in
Section {
NavigationLink {
VStack {
Text(name ?? "Err").font(.title)
Text(category ?? "Err").font(.subheadline)
}
} label: {
HStack {
Text("\(order)")
Spacer()
Text(name ?? "Err")
}
}
}
}
}
.listStyle(.insetGrouped)

Section?