try to fix watch stuff
This commit is contained in:
@@ -9,6 +9,7 @@ import SwiftUI
|
||||
|
||||
struct WatchControlView: View {
|
||||
@StateObject var vm = WatchMainViewModel.shared
|
||||
@StateObject var watchWorkout = WatchWorkout.shared
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
@@ -44,7 +45,7 @@ struct WatchControlView: View {
|
||||
Button(action: {
|
||||
vm.pauseWorkout()
|
||||
}, label: {
|
||||
if vm.isPaused {
|
||||
if watchWorkout.isPaused {
|
||||
Image(systemName: "play")
|
||||
.font(.title)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
|
||||
Reference in New Issue
Block a user