profile deleted swipe
This commit is contained in:
parent
ff155b23e5
commit
71b19f15ba
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user