From 5eeff5d24d2266dc7ace091387e514cca51f4706 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Thu, 24 Jul 2025 23:22:41 +0300 Subject: [PATCH] ANTIFAB --- .../Views/Tab/Profile/ProfileContentTabbedGrid.swift | 10 +--------- Shared/Views/Tab/ProfileTab.swift | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift b/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift index 00c8743..4a7be25 100644 --- a/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift +++ b/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift @@ -43,15 +43,7 @@ struct ProfileContentTabbedGrid: View { .cornerRadius(8) .font(.subheadline) - Button { - // Создать пост - } label: { - Label("Создать", systemImage: "plus") - .font(.subheadline) - .padding(8) - .background(Color.blue.opacity(0.2)) - .cornerRadius(8) - } + } else { TextField("Поиск", text: $searchQuery) .padding(.horizontal, 10) diff --git a/Shared/Views/Tab/ProfileTab.swift b/Shared/Views/Tab/ProfileTab.swift index 0806505..0353707 100644 --- a/Shared/Views/Tab/ProfileTab.swift +++ b/Shared/Views/Tab/ProfileTab.swift @@ -80,6 +80,15 @@ struct ProfileTab: View { } } } + ToolbarItem(placement: .navigationBarLeading) { + Button(action: { + // TODO: Действие для создания поста + }) { + Image(systemName: "plus") + .imageScale(.large) + } + } + ToolbarItem(placement: .navigationBarTrailing) { NavigationLink(destination: SettingsView(viewModel: viewModel)) { Image(systemName: "wrench")