From ac8fe3db294f9190c01a11098aa61d36581da609 Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Fri, 3 Apr 2026 02:11:29 -0500 Subject: [PATCH] fix: remove History tab, add Foods tab, fix FitnessTabView Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Platform/Features/Fitness/Views/FitnessTabView.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ios/Platform/Platform/Features/Fitness/Views/FitnessTabView.swift b/ios/Platform/Platform/Features/Fitness/Views/FitnessTabView.swift index 00e350d..4aec420 100644 --- a/ios/Platform/Platform/Features/Fitness/Views/FitnessTabView.swift +++ b/ios/Platform/Platform/Features/Fitness/Views/FitnessTabView.swift @@ -7,9 +7,9 @@ struct FitnessTabView: View { enum FitnessTab: String, CaseIterable { case today = "Today" - case history = "History" case templates = "Templates" case goals = "Goals" + case foods = "Foods" } var body: some View { @@ -23,14 +23,16 @@ struct FitnessTabView: View { switch selectedTab { case .today: TodayView(viewModel: todayVM, showFoodSearch: $showFoodSearch) - case .history: - HistoryView() case .templates: TemplatesView(dateString: todayVM.dateString) { Task { await todayVM.load() } } case .goals: GoalsView() + case .foods: + FoodLibraryView(dateString: todayVM.dateString) { + Task { await todayVM.load() } + } } } }