From 39f8a70b6b38a650bc8920d7673c111043a5d68d Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 21 Mar 2026 20:39:56 -0700 Subject: [PATCH] feat(ios): gate Focus tab behind focus_mode_enabled feature flag --- ios/ChronoMind/App/ContentView.swift | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ios/ChronoMind/App/ContentView.swift b/ios/ChronoMind/App/ContentView.swift index a61eec2..5f0e758 100644 --- a/ios/ChronoMind/App/ContentView.swift +++ b/ios/ChronoMind/App/ContentView.swift @@ -47,11 +47,13 @@ struct ContentView: View { } .tag(Tab.timeline) - PomodoroView() - .tabItem { - Label(Tab.focus.rawValue, systemImage: Tab.focus.icon) - } - .tag(Tab.focus) + if FeatureFlagService.shared.isEnabled("focus_mode_enabled") { + PomodoroView() + .tabItem { + Label(Tab.focus.rawValue, systemImage: Tab.focus.icon) + } + .tag(Tab.focus) + } HistoryView() .tabItem { @@ -73,7 +75,10 @@ struct ContentView: View { NavigationSplitView { // Sidebar VStack(spacing: 0) { - ForEach(Tab.allCases) { tab in + ForEach(Tab.allCases.filter { tab in + if tab == .focus { return FeatureFlagService.shared.isEnabled("focus_mode_enabled") } + return true + }) { tab in Button { selectedTab = tab } label: {