WIP
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user