fix: resolve import paths and module loading errors

This commit is contained in:
2026-08-07 12:41:04 +02:00
parent 43b6467efb
commit 11f0d16515
15 changed files with 388 additions and 14 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ struct WorkoutListView: View {
Text(workout.name ?? "Workout")
.font(.headline)
.foregroundColor(.primary)
Text("\(workout.totalDistance)m · \(workout.sets.count) sets")
Text("\(workout.sets.reduce(0) { $0 + $1.distancePerRep * $1.repCount })m · \(workout.sets.count) sets")
.font(.caption)
.foregroundColor(.secondary)
}
@@ -85,7 +85,7 @@ struct WorkoutListView: View {
}
}
}
.listStyle(.grouped)
.listStyle(.automatic)
.onAppear {
workoutManager.loadSavedWorkouts()
}