31 lines
595 B
Swift
31 lines
595 B
Swift
//
|
|
// ContentView.swift
|
|
// Schedule ICTIS
|
|
//
|
|
// Created by G412 on 13.11.2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
@State private var selectedTab: TabBarModel = .schedule
|
|
var body: some View {
|
|
ZStack {
|
|
switch selectedTab {
|
|
case .schedule:
|
|
ScheduleView()
|
|
case .tasks:
|
|
Text("Tasks")
|
|
case .settings:
|
|
Text("Settings")
|
|
}
|
|
TabBarView(selectedTab: $selectedTab)
|
|
}
|
|
.background(Color("background"))
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
}
|