diff options
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, |