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
@@ -15,16 +15,7 @@ struct ActiveWorkoutSessionListItem: View {
switch workoutItem.workoutItemType {
case .set:
Text(workoutItem.name)
case .exerciseWithReps:
Text(workoutItem.name)
Spacer()
Button(action: {
// TODO: Implement a sheet view; don't use ExerciseDetail since its purpose is editing
}) {
Image(systemName: "info.circle")
.foregroundColor(.blue)
}
case .exerciseWithDuration:
case .exercise:
Text(workoutItem.name)
Spacer()
Button(action: {