бургер меню
This commit is contained in:
		
							parent
							
								
									fc214ed696
								
							
						
					
					
						commit
						c8d71996d9
					
				@ -62,7 +62,8 @@ struct TopBarView: View {
 | 
			
		||||
                }
 | 
			
		||||
                
 | 
			
		||||
                if isHomeTab{
 | 
			
		||||
                    // Заглушка кнопки
 | 
			
		||||
                    HStack(spacing: 20) {
 | 
			
		||||
                        // Кнопка поиска
 | 
			
		||||
                        Button(action: {
 | 
			
		||||
                            // пока ничего не делаем
 | 
			
		||||
                        }) {
 | 
			
		||||
@ -70,6 +71,15 @@ struct TopBarView: View {
 | 
			
		||||
                                .imageScale(.large)
 | 
			
		||||
                                .foregroundColor(.primary)
 | 
			
		||||
                        }
 | 
			
		||||
                        // Кнопка уведомлений
 | 
			
		||||
                        Button(action: {
 | 
			
		||||
                            // пока ничего не делаем
 | 
			
		||||
                        }) {
 | 
			
		||||
                            Image(systemName: "bell")
 | 
			
		||||
                                .imageScale(.large)
 | 
			
		||||
                                .foregroundColor(.primary)
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                } else if isProfileTab {
 | 
			
		||||
                    NavigationLink(destination: SettingsView(viewModel: viewModel)) {
 | 
			
		||||
                        Image(systemName: "wrench")
 | 
			
		||||
 | 
			
		||||
@ -69,9 +69,12 @@ struct MainView: View {
 | 
			
		||||
 | 
			
		||||
                // Боковое меню
 | 
			
		||||
                if isSideMenuPresented {
 | 
			
		||||
                    HStack {
 | 
			
		||||
                        SideMenuView(isPresented: $isSideMenuPresented)
 | 
			
		||||
                            .frame(width: UIScreen.main.bounds.width * 0.8)
 | 
			
		||||
                        .offset(x: isSideMenuPresented ? 0 : -UIScreen.main.bounds.width)
 | 
			
		||||
                        Spacer()
 | 
			
		||||
                    }
 | 
			
		||||
                    .ignoresSafeArea(edges: .vertical) // Игнорируем safe area
 | 
			
		||||
                    .transition(.move(edge: .leading))
 | 
			
		||||
                    .zIndex(1) // Убедимся, что меню поверх всего
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user