48 lines
1.1 KiB
Swift
48 lines
1.1 KiB
Swift
import SwiftUI
|
|
|
|
struct MainTabView: View {
|
|
var body: some View {
|
|
TabView {
|
|
NavigationStack {
|
|
DashboardView()
|
|
}
|
|
.tabItem {
|
|
Label(String(localized: "tab.dashboard"), systemImage: "chart.bar.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
CategoryView()
|
|
}
|
|
.tabItem {
|
|
Label(String(localized: "tab.category"), systemImage: "folder.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
TaskTrackerView()
|
|
}
|
|
.tabItem {
|
|
Label(String(localized: "tab.tasks"), systemImage: "checkmark.circle.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
GoalView()
|
|
}
|
|
.tabItem {
|
|
Label(String(localized: "tab.goals"), systemImage: "flag.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
SettingsView()
|
|
}
|
|
.tabItem {
|
|
Label(String(localized: "tab.settings"), systemImage: "gearshape.fill")
|
|
}
|
|
}
|
|
.tint(Theme.green)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
MainTabView()
|
|
}
|