diff --git a/Shared/Components/TopBarView.swift b/Shared/Components/TopBarView.swift index 160a3e2..76f0ab0 100644 --- a/Shared/Components/TopBarView.swift +++ b/Shared/Components/TopBarView.swift @@ -62,13 +62,23 @@ struct TopBarView: View { } if isHomeTab{ - // Заглушка кнопки - Button(action: { - // пока ничего не делаем - }) { - Image(systemName: "magnifyingglass") - .imageScale(.large) - .foregroundColor(.primary) + HStack(spacing: 20) { + // Кнопка поиска + Button(action: { + // пока ничего не делаем + }) { + Image(systemName: "magnifyingglass") + .imageScale(.large) + .foregroundColor(.primary) + } + // Кнопка уведомлений + Button(action: { + // пока ничего не делаем + }) { + Image(systemName: "bell") + .imageScale(.large) + .foregroundColor(.primary) + } } } else if isProfileTab { NavigationLink(destination: SettingsView(viewModel: viewModel)) { diff --git a/Shared/Views/Tab/MainView.swift b/Shared/Views/Tab/MainView.swift index 658b303..e661a89 100644 --- a/Shared/Views/Tab/MainView.swift +++ b/Shared/Views/Tab/MainView.swift @@ -69,11 +69,14 @@ struct MainView: View { // Боковое меню if isSideMenuPresented { - SideMenuView(isPresented: $isSideMenuPresented) - .frame(width: UIScreen.main.bounds.width * 0.8) - .offset(x: isSideMenuPresented ? 0 : -UIScreen.main.bounds.width) - .transition(.move(edge: .leading)) - .zIndex(1) // Убедимся, что меню поверх всего + HStack { + SideMenuView(isPresented: $isSideMenuPresented) + .frame(width: UIScreen.main.bounds.width * 0.8) + Spacer() + } + .ignoresSafeArea(edges: .vertical) // Игнорируем safe area + .transition(.move(edge: .leading)) + .zIndex(1) // Убедимся, что меню поверх всего } } }