From 44eae7e70c7ae5bade17ba373533d204b2d1d65f Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 28 Apr 2019 14:45:09 -0500 Subject: [PATCH] Deselect table row on settings table click --- iOS/Settings/SettingsViewController.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index 52a2249c2..f73369530 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -54,8 +54,6 @@ class SettingsViewController: UITableViewController { override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { switch indexPath.section { - case 0: - print("Accounts isn't ready yet") case 1: switch indexPath.row { case 0: @@ -72,7 +70,7 @@ class SettingsViewController: UITableViewController { } case 2: UIApplication.shared.open(URL(string: "https://appcamp4girls.com/contribute/")!, options: [:]) - default: + case 4: switch indexPath.row { case 0: let timeline = UIStoryboard.settings.instantiateController(ofType: RefreshIntervalViewController.self) @@ -86,8 +84,12 @@ class SettingsViewController: UITableViewController { default: print("export") } + default: + break } + tableView.selectRow(at: nil, animated: true, scrollPosition: .none) + } @IBAction func done(_ sender: Any) {