I have a List with a Section:
VStack {
List {
Section(header: Text("Workout Details")) {}
}
}
Inside that Section I have a ForEach that will put every set into its own VStack:
Section(header: Text("Exercises")) {
if let exercises = workout.exercises?.sorted(by: { $0.date < $1.date }) {
ForEach(exercises){ exercise in
if let exercisesets = exercise.sets {
ForEach(exercisesets) { set in
//i want 20 pixels of space between each VStack
VStack {
Text("(exercise.exerciseName.name)")
HStack {
Text("(set.weight)")
Text("(set.reps)")
}
}
}
}
}
.onDelete(perform: delete)
}
else {
Text("No Exericses Yet")
}
//.onDelete(perform: delete)
}
How would I add space between each of those VStacks so they are separated from each other: