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 {