import SwiftUI struct MainTabView: View { @Binding var selectedTab: MainTab @Binding var root: RootFlow let tokenStore: TokenStore @Binding var appState: AppState var body: some View { TabView(selection: $selectedTab) { NavigationStack { HomeView(appState: $appState) } .tabItem { Label("Home", systemImage: "house.fill") } .tag(MainTab.home) NavigationStack { CartView() } .tabItem { Label("Carrinho", systemImage: "cart.fill") } .tag(MainTab.cart) NavigationStack { ProfileView(root: $root, selectedTab: $selectedTab, tokenStore: tokenStore, appState: $appState) } .tabItem { Label("Perfil", systemImage: "person.fill") } .tag(MainTab.profile) } .tint(AppColors.primary) } }