WIP
This commit is contained in:
@@ -30,8 +30,7 @@ struct WatchControlView: View {
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
})
|
||||
.buttonStyle(BorderedButtonStyle(tint: .yellow))
|
||||
}
|
||||
VStack {
|
||||
|
||||
Button(action: {
|
||||
vm.previousExercise()
|
||||
}, label: {
|
||||
@@ -40,6 +39,16 @@ struct WatchControlView: View {
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
})
|
||||
.buttonStyle(BorderedButtonStyle(tint: .blue))
|
||||
}
|
||||
VStack {
|
||||
Button(action: {
|
||||
vm.pauseWorkout()
|
||||
}, label: {
|
||||
Image(systemName: "pause")
|
||||
.font(.title)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
})
|
||||
.buttonStyle(BorderedButtonStyle(tint: .blue))
|
||||
|
||||
Button(action: {
|
||||
vm.nextExercise()
|
||||
@@ -54,8 +63,8 @@ struct WatchControlView: View {
|
||||
}
|
||||
}
|
||||
|
||||
//struct WatchControlView_Previews: PreviewProvider {
|
||||
// static var previews: some View {
|
||||
// WatchControlView(vm: WatchMainViewModel())
|
||||
// }
|
||||
//}
|
||||
struct WatchControlView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
WatchControlView(vm: WatchMainViewModel())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user