diff options
| author | Fuwn <[email protected]> | 2025-09-01 18:51:11 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-01 18:51:11 -0700 |
| commit | 4fab43ffa975500e886acbebbcd901c3fb4dc6ae (patch) | |
| tree | fdbb21b3a3e11de5feb1400ec1b51a7b272895f4 /Sora/Views/Post/Grid/PostGridView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-4fab43ffa975500e886acbebbcd901c3fb4dc6ae.tar.xz sora-testing-4fab43ffa975500e886acbebbcd901c3fb4dc6ae.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridView.swift | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift index 4fd5ffb..0ad34f5 100644 --- a/Sora/Views/Post/Grid/PostGridView.swift +++ b/Sora/Views/Post/Grid/PostGridView.swift @@ -220,7 +220,12 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length } } .navigationDestination(for: PostWithContext.self) { context in - PostDetailsView(post: context.post, navigationPath: $navigationPath, posts: context.posts) + PostDetailsView( + post: context.post, + navigationPath: $navigationPath, + posts: context.posts, + baseSearchText: context.baseSearchText + ) } .onChange(of: isSearchablePresented) { _, isPresented in if !isPresented, searchText.wrappedValue.isEmpty, !manager.isNavigatingHistory { @@ -417,7 +422,11 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length private func waterfallGridContent(post: BooruPost) -> some View { NavigationLink( - value: PostWithContext(post: post, posts: initialTag != nil ? localPosts : nil) + value: PostWithContext( + post: post, + posts: initialTag != nil ? localPosts : nil, + baseSearchText: initialTag != nil ? localSearchText : nil + ) ) { PostGridThumbnailView( post: post, |