diff options
| author | Fuwn <[email protected]> | 2025-02-22 00:28:09 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-22 00:28:09 -0800 |
| commit | 7b470cd80eea4b4ef72a3ca8726b8a72a58b01ee (patch) | |
| tree | f76b65f0ca2152ce17200506e7971edd2f5a52ac /Sora/Views/Bookmarks | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-7b470cd80eea4b4ef72a3ca8726b8a72a58b01ee.tar.xz sora-testing-7b470cd80eea4b4ef72a3ca8726b8a72a58b01ee.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Bookmarks')
| -rw-r--r-- | Sora/Views/Bookmarks/BookmarksView.swift | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Sora/Views/Bookmarks/BookmarksView.swift b/Sora/Views/Bookmarks/BookmarksView.swift index b36ee45..b52e7b7 100644 --- a/Sora/Views/Bookmarks/BookmarksView.swift +++ b/Sora/Views/Bookmarks/BookmarksView.swift @@ -12,8 +12,8 @@ struct BookmarksView: View { } return settings.bookmarks - .filter { - $0.tags.joined(separator: " ").lowercased().contains(bookmarksSearchText.lowercased()) + .filter { bookmark in + bookmark.tags.joined(separator: " ").lowercased().contains(bookmarksSearchText.lowercased()) } } @@ -24,7 +24,8 @@ struct BookmarksView: View { ContentUnavailableView( "No Bookmarks", systemImage: "bookmark", - description: Text("Add a bookmark by tapping the bookmark button on a search page.")) + description: Text("Add a bookmark by tapping the bookmark button on a search page.") + ) } else { List { if filteredBookmarks.isEmpty, !bookmarksSearchText.isEmpty { |