From 203ed326c888eff49f7059da897b931d4768ffff Mon Sep 17 00:00:00 2001 From: Ryan Priebe Date: Thu, 18 May 2023 11:10:41 -0600 Subject: [PATCH] cleanup --- DLPrototype/Views/Today/LogTable/LogTable.swift | 3 +++ DLPrototype/Views/Today/Today.swift | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/DLPrototype/Views/Today/LogTable/LogTable.swift b/DLPrototype/Views/Today/LogTable/LogTable.swift index f32b773b..da7f31c8 100644 --- a/DLPrototype/Views/Today/LogTable/LogTable.swift +++ b/DLPrototype/Views/Today/LogTable/LogTable.swift @@ -33,6 +33,7 @@ struct LogTable: View, Identifiable { @Environment(\.managedObjectContext) var moc @EnvironmentObject public var updater: ViewUpdater + @EnvironmentObject public var ce: CoreDataCalendarEvent // MARK: body view var body: some View { @@ -48,6 +49,8 @@ struct LogTable: View, Identifiable { } } else { CalendarToday() + .id(updater.ids["today.calendarStrip"]) + .environmentObject(ce) } if showSidebar { diff --git a/DLPrototype/Views/Today/Today.swift b/DLPrototype/Views/Today/Today.swift index dfbe8375..ffdc9bcc 100644 --- a/DLPrototype/Views/Today/Today.swift +++ b/DLPrototype/Views/Today/Today.swift @@ -47,7 +47,6 @@ struct Today: View { VStack(alignment: .leading) { editor // actions - calendarStrip table } .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity) @@ -106,12 +105,6 @@ struct Today: View { .environmentObject(ce) } - var calendarStrip: some View { - CalendarToday() - .id(updater.ids["today.calendarStrip"]) - .environmentObject(ce) - } - // TODO: convert to current in progress event status update UX/UI // @ViewBuilder private var actions: some View { // HStack {