-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,8 @@ public class ActivityViewViewModel: ObservableObject { | |
@Published var currentExercise: Exercise | ||
@Published var currentExerciseInterface: Exercise.Interface | ||
@Published var currentExerciseSharedData: ExerciseSharedData | ||
@Published var isCurrentExerciseDisplayingReinforcer: Bool = false | ||
@Published var isCurrentExerciseCompleted: Bool = false | ||
@Published var isReinforcerEnabled: Bool = true | ||
@Published var isCurrentActivityCompleted: Bool = false | ||
|
||
// TODO(@ladislas/@hugo): Add method to change this boolean | ||
Check warning on line 47 in Modules/GameEngineKit/Sources/_NewSystem/Views/Activity/ActivityViewViewModel.swift GitHub Actions / swiftlint
|
||
|
@@ -101,7 +102,7 @@ public class ActivityViewViewModel: ObservableObject { | |
self.objectWillChange.send() | ||
if self.currentExerciseSharedData.state == .completed { | ||
withAnimation { | ||
self.isCurrentExerciseDisplayingReinforcer = true | ||
self.isCurrentExerciseCompleted = true | ||
} | ||
} | ||
} | ||
|