summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-25 06:53:00 -0700
committerFuwn <[email protected]>2025-06-25 06:53:00 -0700
commit78056fc1fff43b45b1863c7338afd6b1c45486be (patch)
tree80d7e50160daf667f0eb3a05381cce05d0d33a52 /Sora/Views/Post/Grid/PostGridView.swift
parentfeat: Development commit (diff)
downloadsora-testing-78056fc1fff43b45b1863c7338afd6b1c45486be.tar.xz
sora-testing-78056fc1fff43b45b1863c7338afd6b1c45486be.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift20
1 files changed, 14 insertions, 6 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 9eef5f7..4b32c88 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -107,12 +107,20 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length
}
}
.animation(.easeInOut, value: manager.historyIndex)
- .searchable(
- text: $manager.searchText,
- isPresented: $isSearchablePresented,
- placement: .navigationBarDrawer(displayMode: .automatic),
- prompt: "Tags"
- )
+ #if os(iOS)
+ .searchable(
+ text: $manager.searchText,
+ isPresented: $isSearchablePresented,
+ placement: .navigationBarDrawer(displayMode: .automatic),
+ prompt: "Tags"
+ )
+ #else
+ .searchable(
+ text: $manager.searchText,
+ isPresented: $isSearchablePresented,
+ prompt: "Tags"
+ )
+ #endif
.searchSuggestions {
if settings.searchSuggestionsMode != .disabled {
SearchSuggestionsView(