ios_app/Shared/Views/Tab/MainView.swift
2025-07-16 06:40:07 +03:00

54 lines
1.3 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// MainView.swift
// VolnahubApp
//
// Created by cheykrym on 09/06/2025.
//
import SwiftUI
struct MainView: View {
@ObservedObject var viewModel: LoginViewModel
@State private var selectedTab: Int = 0
var body: some View {
TabView(selection: $selectedTab) {
HomeTab()
.tabItem {
Image(systemName: "list.bullet.rectangle")
Text("Лента")
}
.tag(0)
SearchTab()
.tabItem {
Image(systemName: "magnifyingglass")
Text("Поиск")
}
.tag(1)
// PublicsTab()
// .tabItem {
// Image(systemName: "")
// Text("Свайп")
// }
// .tag(1)
ChatsTab()
.tabItem {
Image(systemName: "bubble.left.and.bubble.right.fill")
Text("Чаты")
}
.tag(2)
ProfileTab(viewModel: viewModel)
.tabItem {
Image(systemName: "person.crop.square")
Text("Лицо")
}
.tag(3)
}
}
}