From 8d969adb5c660ee0773bdb0069dd8160b8c0e0a0 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Sun, 24 Sep 2017 22:55:24 -0700 Subject: [PATCH] Optimize refreshControl ending time --- pass/Controllers/PasswordsViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pass/Controllers/PasswordsViewController.swift b/pass/Controllers/PasswordsViewController.swift index 8cdf44d..52b8dbc 100644 --- a/pass/Controllers/PasswordsViewController.swift +++ b/pass/Controllers/PasswordsViewController.swift @@ -166,6 +166,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV self.reloadTableView(parent: nil) SVProgressHUD.showSuccess(withStatus: "Done") SVProgressHUD.dismiss(withDelay: 1) + self.syncControl.endRefreshing() } } catch { DispatchQueue.main.async { @@ -518,7 +519,6 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV @objc func handleRefresh(_ syncControl: UIRefreshControl) { syncPasswords() - syncControl.endRefreshing() } func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) {