2023-01-20 17:28:15 -08:00
|
|
|
//
|
|
|
|
|
// HistoryBrowserViewController.swift
|
|
|
|
|
// App
|
|
|
|
|
//
|
|
|
|
|
// Created by James Magahern on 1/20/23.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
|
|
@MainActor
|
|
|
|
|
class HistoryBrowserViewController: UIHostingController<HistoryView> {
|
2023-09-26 16:23:35 -07:00
|
|
|
public init(onSelectItem: @escaping (URL) -> Void) {
|
|
|
|
|
super.init(rootView: HistoryView(viewModel: BrowserHistory.shared.viewModel(limit: 500), onSelectItem: onSelectItem))
|
2023-01-20 17:28:15 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
required dynamic init?(coder aDecoder: NSCoder) {
|
|
|
|
|
fatalError("init(coder:) has not been implemented")
|
|
|
|
|
}
|
|
|
|
|
}
|