diff options
| author | Fuwn <[email protected]> | 2025-03-12 03:09:23 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-03-12 03:09:23 -0700 |
| commit | 872f2b0106ad5dafd98c2843d5099d73a02e81be (patch) | |
| tree | a908d050cc877b502d7ac29d8d9697b88d1b9aee /Sora/Views/Post/Grid/PostGridView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-872f2b0106ad5dafd98c2843d5099d73a02e81be.tar.xz sora-testing-872f2b0106ad5dafd98c2843d5099d73a02e81be.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridView.swift | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift index a03463b..7a0091d 100644 --- a/Sora/Views/Post/Grid/PostGridView.swift +++ b/Sora/Views/Post/Grid/PostGridView.swift @@ -45,7 +45,7 @@ struct PostGridView: View { manager.performSearch(settings: settings) } .navigationDestination(for: BooruPost.self) { post in - PostDetailsView(post: post, manager: manager) + PostDetailsView(post: post, manager: manager, selectedPost: $selectedPost) } .onChange(of: manager.searchText) { _, _ in if manager.searchText.isEmpty, !isSearching { @@ -98,9 +98,9 @@ struct PostGridView: View { if !manager.tags.isEmpty { #if os(macOS) - ToolbarItem { PostGridBookmarkButtonView() } + ToolbarItem { PostGridBookmarkButtonView(manager: manager) } #else - ToolbarItem(placement: .bottomBar) { PostGridBookmarkButtonView() } + ToolbarItem(placement: .bottomBar) { PostGridBookmarkButtonView(manager: manager) } #endif } } @@ -116,7 +116,8 @@ struct PostGridView: View { .sheet(isPresented: $isSearchHistoryPresented) { PostGridSearchHistoryView( selectedTab: $selectedTab, - isPresented: $isSearchHistoryPresented + isPresented: $isSearchHistoryPresented, + manager: manager ) .frame(minHeight: 250) } @@ -130,7 +131,7 @@ struct PostGridView: View { selectedPost.manager = manager } } label: { - PostGridThumbnailView(post: post, posts: filteredPosts) + PostGridThumbnailView(post: post, posts: filteredPosts, manager: manager) } .buttonStyle(PlainButtonStyle()) .contextMenu { |