add details to phone workout view

This commit is contained in:
Trey t
2024-06-16 18:24:00 -05:00
parent 1fbb0c90f4
commit 0ac3835a9f
6 changed files with 56 additions and 14 deletions

View File

@@ -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: {