File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 " )
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments