@@ -30,19 +30,19 @@ struct StepsView: View {
3030 var body : some View {
3131 GeometryReader { geo in
3232 List {
33- Section {
34- DetailHeaderView ( Header ( title: steps ( for: Date ( ) ) , subtitle: String ( deviceManager. settings. stepsGoal) , units: " Steps " , icon: " figure.walk " , accent: . blue) , width: geo. size. width) {
35- HStack {
36- DetailHeaderSubItemView ( title: " Dis " ,
37- value: String ( format: " %.2f " , exerciseCalculator. calculateDistance ( steps: bleManager. stepCount) ) ,
38- unit: personalizationController. units == . imperial ? " mi " : " m " )
39- DetailHeaderSubItemView ( title: " Kcal " , value: String ( format: " %.1f " , exerciseCalculator. calculateCaloriesBurned ( steps: bleManager. stepCount) ) )
40- }
33+ Section {
34+ DetailHeaderView ( Header ( title: steps ( for: Date ( ) ) , subtitle: String ( deviceManager. settings. stepsGoal) , units: " Steps " , icon: " figure.walk " , accent: . blue) , width: geo. size. width) {
35+ HStack {
36+ DetailHeaderSubItemView ( title: " Dis " ,
37+ value: String ( format: " %.2f " , exerciseCalculator. calculateDistance ( steps: bleManager. stepCount) ) ,
38+ unit: personalizationController. units == . imperial ? " mi " : " m " )
39+ DetailHeaderSubItemView ( title: " Kcal " , value: String ( format: " %.1f " , exerciseCalculator. calculateCaloriesBurned ( steps: bleManager. stepCount) ) )
4140 }
42- . listRowInsets ( EdgeInsets ( top: 0 , leading: 0 , bottom: 0 , trailing: 0 ) )
43- . listRowBackground ( Color . clear)
4441 }
45- StepChartView ( )
42+ . listRowInsets ( EdgeInsets ( top: 0 , leading: 0 , bottom: 0 , trailing: 0 ) )
43+ . listRowBackground ( Color . clear)
44+ }
45+ StepChartView ( )
4646 }
4747 }
4848 . navigationTitle ( " Steps " )
0 commit comments