WIP
This commit is contained in:
@@ -30,10 +30,15 @@ class BridgeModule: NSObject, ObservableObject {
|
||||
public private(set) var workoutStartDate: Date?
|
||||
|
||||
private var currentExerciseTimer: Timer?
|
||||
public private(set) var currentExerciseIdx: Int = -1
|
||||
public private(set) var currentExerciseIdx: Int = -1 {
|
||||
didSet {
|
||||
self.currentExercisePositionString = "\(self.currentExerciseIdx+1)/\(self.currentWorkout?.exercises.count ?? 0)"
|
||||
}
|
||||
}
|
||||
@Published var currentExerciseTimeLeft: Int = 0
|
||||
@Published var currentExercise: ExerciseElement?
|
||||
|
||||
var currentExercisePositionString: String?
|
||||
|
||||
private var isWatchConnected = false
|
||||
// workoutEndDate fills out WatchPackageModel.workoutEndDate which
|
||||
// tells the watch app to stop the workout
|
||||
|
||||
Reference in New Issue
Block a user