add SimpleStopWatch to ActiveWorkoutSession

This commit is contained in:
Felix Förtsch
2024-10-28 12:00:56 +01:00
parent d1a87957f6
commit c722d59aff
18 changed files with 213 additions and 153 deletions
@@ -31,11 +31,11 @@ struct ActiveWorkoutSessionControls: View {
}
}
.buttonStyle(.borderedProminent)
.bold()
.fontWeight(.bold)
.tint(.primary)
Button(action: {
// TODO: Implement proper Pausing
session.pause()
session.isPaused = true
}) {
HStack {
Image(systemName: "pause.fill")
@@ -43,7 +43,7 @@ struct ActiveWorkoutSessionControls: View {
}
}
.buttonStyle(.borderedProminent)
.bold()
.fontWeight(.bold)
.tint(.gray)
.disabled(true)
Button(action: {
@@ -55,7 +55,7 @@ struct ActiveWorkoutSessionControls: View {
}
}
.buttonStyle(.borderedProminent)
.bold()
.fontWeight(.bold)
.tint(.primary)
}
}