30 lines
902 B
Swift
30 lines
902 B
Swift
import SwiftUI
|
|
|
|
struct MainTabView: View {
|
|
@EnvironmentObject var authManager: AuthManager
|
|
|
|
var body: some View {
|
|
TabView {
|
|
DashboardView()
|
|
.tabItem { Label("Главная", systemImage: "house.fill") }
|
|
|
|
TasksView()
|
|
.tabItem { Label("Задачи", systemImage: "checkmark.circle.fill") }
|
|
|
|
HabitsView()
|
|
.tabItem { Label("Привычки", systemImage: "flame.fill") }
|
|
|
|
HealthView()
|
|
.tabItem { Label("Здоровье", systemImage: "heart.fill") }
|
|
|
|
FinanceView()
|
|
.tabItem { Label("Финансы", systemImage: "rublesign.circle.fill") }
|
|
|
|
ProfileView()
|
|
.tabItem { Label("Профиль", systemImage: "person.fill") }
|
|
}
|
|
.accentColor(Color(hex: "00d4aa"))
|
|
.preferredColorScheme(.dark)
|
|
}
|
|
}
|