From 71b19f15ba60104d075b2618158a75e94087fd73 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Wed, 16 Jul 2025 06:58:33 +0300 Subject: [PATCH] profile deleted swipe --- .../Profile/ProfileContentTabbedGrid.swift | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift b/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift index 61ff4b4..94bf9a9 100644 --- a/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift +++ b/Shared/Views/Tab/Profile/ProfileContentTabbedGrid.swift @@ -64,20 +64,14 @@ struct ProfileContentTabbedGrid: View { .padding(.vertical, 12) // Контент с табами - TabView(selection: $selectedTabIndex) { - ForEach(0..<4) { index in - ProfileContentGrid( - isContentLoaded: isContentLoaded, - selectedTabIndex: index, - searchQuery: searchQuery, - selectedCategory: selectedCategory, - allPosts: allPosts, - isLoading: isLoading - ) - .tag(index) - } - } - .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never)) + ProfileContentGrid( + isContentLoaded: isContentLoaded, + selectedTabIndex: selectedTabIndex, + searchQuery: searchQuery, + selectedCategory: selectedCategory, + allPosts: allPosts, + isLoading: isLoading + ) } .onAppear { if allPosts.isEmpty {