Login and Home

This commit is contained in:
Daniel Arantes Loverde
2026-02-04 16:55:29 -03:00
parent 78daaf1927
commit 33fc111459
90 changed files with 1707 additions and 303 deletions

View File

@@ -0,0 +1,30 @@
import SwiftUI
struct MainTabView: View {
@Binding var selectedTab: MainTab
@Binding var root: RootFlow
let tokenStore: TokenStore
var body: some View {
TabView(selection: $selectedTab) {
NavigationStack {
HomeView()
}
.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)
}
.tabItem { Label("Perfil", systemImage: "person.fill") }
.tag(MainTab.profile)
}
.tint(AppColors.primary)
}
}