profile deleted swipe

This commit is contained in:
cheykrym 2025-07-16 06:58:33 +03:00
parent ff155b23e5
commit 71b19f15ba

View File

@ -64,20 +64,14 @@ struct ProfileContentTabbedGrid: View {
.padding(.vertical, 12) .padding(.vertical, 12)
// Контент с табами // Контент с табами
TabView(selection: $selectedTabIndex) { ProfileContentGrid(
ForEach(0..<4) { index in isContentLoaded: isContentLoaded,
ProfileContentGrid( selectedTabIndex: selectedTabIndex,
isContentLoaded: isContentLoaded, searchQuery: searchQuery,
selectedTabIndex: index, selectedCategory: selectedCategory,
searchQuery: searchQuery, allPosts: allPosts,
selectedCategory: selectedCategory, isLoading: isLoading
allPosts: allPosts, )
isLoading: isLoading
)
.tag(index)
}
}
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
} }
.onAppear { .onAppear {
if allPosts.isEmpty { if allPosts.isEmpty {