Schedule-ICTIS/Schedule ICTIS/ContentView.swift
Vladimir Dubovik d3f448e288 Initial Commit
2024-11-13 17:41:03 +03:00

33 lines
767 B
Swift

//
// ContentView.swift
// Schedule ICTIS
//
// Created by G412 on 13.11.2024.
//
import SwiftUI
struct ContentView: View {
@State private var isActiveTabBar: TabModel = .schedule
@State private var isTabBarHidden: Bool = false
var body: some View {
VStack {
TabView(selection: $isActiveTabBar) {
ScheduleView()
.tag(TabModel.schedule)
Text("Tasks")
.tag(TabModel.tasks)
Text("Settings")
.tag(TabModel.settings)
}
CustomTabBarView(isActiveTabBar: $isActiveTabBar)
.padding(.bottom, 10)
}
.background(.secondary.opacity(0.15))
}
}
#Preview {
ContentView()
}