Optimize refreshControl ending time
This commit is contained in:
parent
1d4939a85d
commit
8d969adb5c
1 changed files with 1 additions and 1 deletions
|
|
@ -166,6 +166,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
||||||
self.reloadTableView(parent: nil)
|
self.reloadTableView(parent: nil)
|
||||||
SVProgressHUD.showSuccess(withStatus: "Done")
|
SVProgressHUD.showSuccess(withStatus: "Done")
|
||||||
SVProgressHUD.dismiss(withDelay: 1)
|
SVProgressHUD.dismiss(withDelay: 1)
|
||||||
|
self.syncControl.endRefreshing()
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
|
@ -518,7 +519,6 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
||||||
|
|
||||||
@objc func handleRefresh(_ syncControl: UIRefreshControl) {
|
@objc func handleRefresh(_ syncControl: UIRefreshControl) {
|
||||||
syncPasswords()
|
syncPasswords()
|
||||||
syncControl.endRefreshing()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) {
|
func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue