fix: resolve import paths and module loading errors
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user