Implemented the "tableView(_: didSelectAt: )" function in the LocationsListViewController view controller.
This commit is contained in:
parent
ac39e943db
commit
efbce8dda8
@ -104,7 +104,20 @@ extension LocationsListViewController: UITableViewDataSource {
|
||||
|
||||
// MARK: - UITableViewDelegate
|
||||
|
||||
extension LocationsListViewController: UITableViewDelegate {}
|
||||
extension LocationsListViewController: UITableViewDelegate {
|
||||
|
||||
// MARK: Functions
|
||||
|
||||
func tableView(
|
||||
_ tableView: UITableView,
|
||||
didSelectRowAt indexPath: IndexPath
|
||||
) {
|
||||
viewModel.openWikipedia(at: indexPath)
|
||||
|
||||
tableView.deselectRow(at: indexPath, animated: true)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user