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")