2021-02-23 09:45:00 +01:00
|
|
|
//
|
|
|
|
// SearchViewController.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
2021-03-31 08:28:40 +02:00
|
|
|
// Created by sxiaojian on 2021/3/31.
|
2021-02-23 09:45:00 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
2021-03-31 08:28:40 +02:00
|
|
|
import Combine
|
2021-02-23 09:45:00 +01:00
|
|
|
|
|
|
|
final class SearchViewController: UIViewController, NeedsDependency {
|
|
|
|
|
|
|
|
weak var context: AppContext! { willSet { precondition(!isViewLoaded) } }
|
|
|
|
weak var coordinator: SceneCoordinator! { willSet { precondition(!isViewLoaded) } }
|
|
|
|
|
2021-03-31 08:28:40 +02:00
|
|
|
var disposeBag = Set<AnyCancellable>()
|
|
|
|
private(set) lazy var viewModel = SearchViewModel(context: context)
|
|
|
|
|
2021-03-31 09:06:46 +02:00
|
|
|
let searchBar: UISearchBar = {
|
|
|
|
let searchBar = UISearchBar()
|
|
|
|
return searchBar
|
|
|
|
}()
|
2021-02-23 09:45:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
extension SearchViewController {
|
|
|
|
|
|
|
|
override func viewDidLoad() {
|
|
|
|
super.viewDidLoad()
|
2021-03-31 09:06:46 +02:00
|
|
|
|
2021-02-23 09:45:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|