File tree Expand file tree Collapse file tree
build-qdomyos-zwift-Qt_5_15_2_for_iOS-Debug/watchkit Extension Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,11 +110,11 @@ extension MainController: WorkoutTrackingDelegate {
110110 WorkoutTracking . cadence = WatchKitConnection . cadence
111111 WorkoutTracking . steps = WatchKitConnection . steps
112112
113- if Locale . current. measurementSystem != " Metric " {
114- self . distanceLabel. setText ( " Distance \( String ( format: " %.2f " , WorkoutTracking . distance) ) " )
115- } else {
116- self . distanceLabel. setText ( " Distance \( String ( format: " %.2f " , WorkoutTracking . distance * 1.60934 ) ) " )
117- }
113+ if Locale . current. measurementSystem != " Metric " {
114+ self . distanceLabel. setText ( " Distance \( String ( format: " %.2f " , WorkoutTracking . distance * 0.621371 ) ) mi " )
115+ } else {
116+ self . distanceLabel. setText ( " Distance \( String ( format: " %.2f " , WorkoutTracking . distance) ) km " )
117+ }
118118 self . caloriesLabel. setText ( " KCal \( Int ( WorkoutTracking . kcal) ) " )
119119 //WorkoutTracking.cadenceSteps = pedometer.
120120 }
You can’t perform that action at this time.
0 commit comments