add details to phone workout view
This commit is contained in:
@@ -34,14 +34,14 @@ struct ExternalWorkoutDetailView: View {
|
||||
ExtExerciseList(workout: workout,
|
||||
allSupersetExecerciseIndex: bridgeModule.currentExerciseInfo.allSupersetExecerciseIndex)
|
||||
|
||||
if let currentExercisePositionString = bridgeModule.currentExercisePositionString {
|
||||
Text(currentExercisePositionString)
|
||||
.font(Font.system(size: 75))
|
||||
.scaledToFit()
|
||||
.minimumScaleFactor(0.01)
|
||||
.lineLimit(1)
|
||||
.padding()
|
||||
}
|
||||
// if let currentExercisePositionString = bridgeModule.currentExercisePositionString {
|
||||
// Text(currentExercisePositionString)
|
||||
// .font(Font.system(size: 75))
|
||||
// .scaledToFit()
|
||||
// .minimumScaleFactor(0.01)
|
||||
// .lineLimit(1)
|
||||
// .padding()
|
||||
// }
|
||||
}
|
||||
.frame(width: metrics.size.width * 0.4, height: metrics.size.height * 0.8)
|
||||
}
|
||||
|
||||
@@ -70,12 +70,17 @@ struct ActionsView: View {
|
||||
Button(action: {
|
||||
bridgeModule.pauseWorkout()
|
||||
}, label: {
|
||||
Image(systemName: "pause.circle.fill")
|
||||
.font(.title)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
bridgeModule.isPaused ?
|
||||
Image(systemName: "play.circle.fill")
|
||||
.font(.title)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
:
|
||||
Image(systemName: "pause.circle.fill")
|
||||
.font(.title)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
})
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.background(.yellow)
|
||||
.background(bridgeModule.isPaused ? .mint : .yellow)
|
||||
.foregroundColor(.white)
|
||||
|
||||
Button(action: {
|
||||
|
||||
@@ -89,6 +89,23 @@ struct WorkoutDetailView: View {
|
||||
InfoView(workout: workout)
|
||||
.padding(.bottom)
|
||||
|
||||
if bridgeModule.isInWorkout {
|
||||
Divider()
|
||||
HStack {
|
||||
Text("Round \(bridgeModule.currentExerciseInfo.currentRound) of \(bridgeModule.currentExerciseInfo.numberOfRoundsInCurrentSuperSet)")
|
||||
.font(.title3)
|
||||
.lineLimit(1)
|
||||
.padding()
|
||||
.bold()
|
||||
|
||||
Text("Current: \(bridgeModule.currentExerciseInfo.allSupersetExecerciseIndex+1) of \(bridgeModule.currentExerciseInfo.workout?.allSupersetExecercise?.count ?? -99)")
|
||||
.font(.title3)
|
||||
.lineLimit(1)
|
||||
.padding()
|
||||
.bold()
|
||||
}
|
||||
}
|
||||
|
||||
ExerciseListView(workout: workout, showExecersizeInfo: $showExecersizeInfo)
|
||||
|
||||
ActionsView(completedWorkout: {
|
||||
|
||||
Reference in New Issue
Block a user