diff --git a/Apps/Locations/Sources/Screens/LocationsList/LocationsListViewController.swift b/Apps/Locations/Sources/Screens/LocationsList/LocationsListViewController.swift index 16e17f4..5fb6e90 100644 --- a/Apps/Locations/Sources/Screens/LocationsList/LocationsListViewController.swift +++ b/Apps/Locations/Sources/Screens/LocationsList/LocationsListViewController.swift @@ -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