summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-28 03:46:41 -0800
committerFuwn <[email protected]>2025-02-28 03:46:41 -0800
commit93fd5a0f53ab9dc30a04f758e17b5c7363f531fe (patch)
tree0a164c694668c26964332785295ab6e219e374e4 /Sora/Views/Post/Grid/PostGridView.swift
parentfeat: Development commit (diff)
downloadsora-testing-93fd5a0f53ab9dc30a04f758e17b5c7363f531fe.tar.xz
sora-testing-93fd5a0f53ab9dc30a04f758e17b5c7363f531fe.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 76bfa7c..b54863f 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -5,6 +5,7 @@ struct PostGridView: View {
@EnvironmentObject var settings: SettingsManager
@EnvironmentObject var manager: BooruManager
@State private var isSearchHistoryPresented = false
+ @Binding var selectedTab: Int
@Environment(\.isSearching)
private var isSearching
@@ -112,7 +113,10 @@ struct PostGridView: View {
}
.scrollDisabled(manager.isLoading)
.sheet(isPresented: $isSearchHistoryPresented) {
- PostGridSearchHistoryView(selectedTab: .constant(0))
+ PostGridSearchHistoryView(
+ selectedTab: $selectedTab,
+ isPresented: $isSearchHistoryPresented
+ )
.frame(minHeight: 250)
}
}