blob: a426be0bef2a22682a73cd10c1926703469721bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import SwiftUI
struct BookmarksView: View {
@EnvironmentObject var settings: SettingsManager
@Binding var selectedTab: Int
@ObservedObject var manager: BooruManager
var body: some View {
GenericListView(
manager: manager,
selectedTab: $selectedTab,
isPresented: .constant(false),
title: "Bookmarks",
emptyMessage: "No Bookmarks",
emptyIcon: "bookmark",
emptyDescription: "Tap the bookmark button on a search page to add a bookmark.",
removeAllMessage:
"Are you sure you want to remove all bookmarks? This action cannot be undone.",
removeAllButtonText: "Remove All Bookmarks",
items: settings.bookmarks,
removeAction: settings.removeBookmark,
removeActionUUID: settings.removeBookmark
) { settings.bookmarks.removeAll() }
}
}
|