HistoryView: Adds ability to delete history items

This commit is contained in:
2023-01-25 15:04:58 -08:00
parent 53efb5389e
commit 34ca35ea5a
5 changed files with 138 additions and 46 deletions

View File

@@ -11,7 +11,7 @@ import UIKit
@MainActor
class HistoryBrowserViewController: UIHostingController<HistoryView> {
public init() {
super.init(rootView: HistoryView(historyItems: BrowserHistory.shared.allHistory(limit: 500)))
super.init(rootView: HistoryView(viewModel: BrowserHistory.shared.viewModel(limit: 500)))
}
required dynamic init?(coder aDecoder: NSCoder) {