add NavigationManager for programatic navigation from the root
This commit is contained in:
@@ -24,6 +24,9 @@ final class WorkoutSessionItem: Nameable, Positionable {
|
||||
var actualReps: Int?
|
||||
var actualValue: Double?
|
||||
|
||||
var startDate: Date?
|
||||
var stopDate: Date?
|
||||
|
||||
init(workoutSession: WorkoutSession, planned: WorkoutItem) {
|
||||
self.workoutSession = workoutSession
|
||||
self.name = planned.exercise.name
|
||||
@@ -33,4 +36,7 @@ final class WorkoutSessionItem: Nameable, Positionable {
|
||||
self.unit = planned.unit
|
||||
self.metric = planned.metric
|
||||
}
|
||||
|
||||
func start() { startDate = .now }
|
||||
func stop() { stopDate = .now }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user