Skip to content

Commit 7816fbf

Browse files
committed
fix counters
1 parent b7d9d19 commit 7816fbf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

FitCount/ContentView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ struct ContentView: View {
3131
.background(.white)
3232
}.navigationBarTitle(Text("Workouts"))
3333
}
34-
.tabItem{
35-
Label("Exercises", systemImage: "figure.strengthtraining.functional")
36-
}
34+
.tabItem{
35+
Label("Exercises", systemImage: "figure.strengthtraining.functional")
36+
}
3737

3838
HistoryView().tabItem{
3939
Label("History", systemImage: "chart.bar")

FitCount/Workout/QuickPoseBasicView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct QuickPoseBasicView: View {
4343
let exerciseTimer = TimerManager()
4444

4545
@State var isInBBox = false
46-
@State var state = WorkoutState.exercise
46+
@State var state = WorkoutState.bbox
4747

4848
@State private var indicatorWidth: CGFloat = 0.0
4949

@@ -174,7 +174,7 @@ struct QuickPoseBasicView: View {
174174
feedbackText = nil
175175
}
176176

177-
if let result = features[.fitness(.bicepsCurls)]{
177+
if case .fitness = exercise.features.first, let result = features[exercise.features.first!]{
178178
counter.count(probability: result.value)
179179
if (counter.getCount() > count) {
180180
Text2Speech(text: String(counter.getCount())).say()

0 commit comments

Comments
 (0)