This commit is contained in:
Trey t
2023-06-27 23:47:55 -05:00
parent 2e7b2cf145
commit 1a06a1dc95
8 changed files with 105 additions and 43 deletions

View File

@@ -27,7 +27,10 @@ struct AllWorkoutsView: View {
var body: some View {
ZStack {
if let workouts = workouts {
if let workouts = workouts,
let _ = DataStore.shared.allExercise,
let _ = DataStore.shared.allMuscles,
let _ = DataStore.shared.allEquipment {
List {
ForEach(workouts, id:\.name) { workout in
VStack {
@@ -44,7 +47,8 @@ struct AllWorkoutsView: View {
}
}
} else {
Text("no workouts")
ProgressView()
.progressViewStyle(.circular)
}
}.onAppear{
maybeUpdateShit()