54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Swift
		
	
	
	
	
	
//
 | 
						||
//  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)
 | 
						||
        }
 | 
						||
    }
 | 
						||
}
 | 
						||
 |