add WorkoutIconSelector to select icon and color for a Workout

This commit is contained in:
Felix Förtsch
2024-09-06 08:24:24 +02:00
parent d82d0cd9fa
commit 6018a57473
5 changed files with 88 additions and 15 deletions
+2
View File
@@ -22,6 +22,8 @@ final class WorkoutItem: Nameable, Positionable {
// EXERCISE
var exercise: Exercise?
// TODO: Think about what's happening when an exercise (template) is deleted or changed
// If it is delete -> we just keep the WorkoutItem with the name :)
// The only relevant delete is delete Workout -> Delete Workoutitems
// { didSet { self.name = exercise?.name ?? "self.name" } }
init(_ reps: Int, _ exercise: String) {