Deselect the cell row when selected for add account view controller

To avoid the highlighting even after the row is selected
This commit is contained in:
Rizwan Mohamed Ibrahim 2020-04-24 18:39:18 +05:30
parent c55d8c540e
commit c7e3162c22
No known key found for this signature in database
GPG Key ID: D5BEE468D448BCC5
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class AddAccountViewController: UITableViewController, AddAccountDismissDelegate
#endif #endif
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
switch indexPath.row { switch indexPath.row {
case 0: case 0:
let navController = UIStoryboard.account.instantiateViewController(withIdentifier: "AddLocalAccountNavigationViewController") as! UINavigationController let navController = UIStoryboard.account.instantiateViewController(withIdentifier: "AddLocalAccountNavigationViewController") as! UINavigationController