diff options
| author | Fuwn <[email protected]> | 2025-02-28 03:46:41 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-28 03:46:41 -0800 |
| commit | 93fd5a0f53ab9dc30a04f758e17b5c7363f531fe (patch) | |
| tree | 0a164c694668c26964332785295ab6e219e374e4 /Sora/Views/Post/Grid/PostGridView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-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.swift | 6 |
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) } } |