Merge develop -> main: full session (KC-51 through KC-71) #28
@@ -36,7 +36,7 @@ final class AnalyticsService: ObservableObject {
|
||||
var healthByDate: [String: RawHealthDay] = [:] // HealthKit reference
|
||||
|
||||
init() {}
|
||||
init(vm: WorkoutViewModel) {
|
||||
@MainActor init(vm: WorkoutViewModel) {
|
||||
self.logByDate = Dictionary(vm.history.map { ($0.date, $0) }, uniquingKeysWith: { a, _ in a })
|
||||
self.workoutDates = Set(vm.workoutDates)
|
||||
self.scheduledWeekdays = Set(vm.schedule.keys)
|
||||
|
||||
Reference in New Issue
Block a user