Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import UIKit
class HomeViewController: UIViewController {

private let deliveryApi = DeliveryApi()

private let searchController = UISearchController()

private let homeView: HomeView = {

Expand Down Expand Up @@ -42,9 +44,16 @@ class HomeViewController: UIViewController {
self.homeView.updateView(with: restaurants)
}
}

configSearchBar()
}

override func loadView() {
self.view = homeView
}

private func configSearchBar() {
navigationItem.searchController = searchController
searchController.searchBar.placeholder = "Nome do restaurante"
}
}