simplify Exercise to only hold on to the unit of the metric, remove ValueKeyboard as input

This commit is contained in:
Felix Förtsch
2024-10-02 12:41:04 +02:00
parent 41a82f081a
commit b7f5caf9dd
15 changed files with 630 additions and 243 deletions
+3 -3
View File
@@ -51,9 +51,9 @@ struct SetListItem: View {
#Preview {
@Previewable @State var set = WorkoutItem(set: [
WorkoutItem(reps: 10, "Squat"),
WorkoutItem(reps: 10, "Squat"),
WorkoutItem(reps: 10, "Squat")])
WorkoutItem(Exercise("Squat")),
WorkoutItem(Exercise("Squat")),
WorkoutItem(Exercise("Squat"))])
List {
SetListItem(workout: Workout(name: "RR"), set: $set)
}