rename for clarity
This commit is contained in:
@@ -86,7 +86,7 @@ class BridgeModule: NSObject, ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var nextExerciseObject: SupersetExercise? {
|
var nextExerciseObject: SupersetExercise? {
|
||||||
currentExerciseInfo.nextExercise
|
currentExerciseInfo.goToNextExercise
|
||||||
}
|
}
|
||||||
|
|
||||||
func resetCurrentWorkout() {
|
func resetCurrentWorkout() {
|
||||||
@@ -167,7 +167,7 @@ class BridgeModule: NSObject, ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func nextExercise() {
|
func nextExercise() {
|
||||||
if let nextSupersetExercise = currentExerciseInfo.nextExercise {
|
if let nextSupersetExercise = currentExerciseInfo.goToNextExercise {
|
||||||
updateCurrent(exercise: nextSupersetExercise)
|
updateCurrent(exercise: nextSupersetExercise)
|
||||||
} else {
|
} else {
|
||||||
completeWorkout()
|
completeWorkout()
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class CurrentWorkoutInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// this needs to set stuff for iphone
|
// this needs to set stuff for iphone
|
||||||
var nextExercise: SupersetExercise? {
|
var goToNextExercise: SupersetExercise? {
|
||||||
guard let workout = workout else { return nil }
|
guard let workout = workout else { return nil }
|
||||||
guard let supersets = workout.supersets else { return nil }
|
guard let supersets = workout.supersets else { return nil }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user