From 1d4939a85da597968198b4709f8751e99ec6415a Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Sun, 24 Sep 2017 22:53:00 -0700 Subject: [PATCH] Fix refreshControl position --- 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 a65bf6c..8cdf44d 100644 --- a/pass/Controllers/PasswordsViewController.swift +++ b/pass/Controllers/PasswordsViewController.swift @@ -199,7 +199,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV tableView.contentInset = UIEdgeInsetsMake(56, 0, 0, 0) definesPresentationContext = true view.addSubview(searchBarView) - tableView.insertSubview(syncControl, at: 0) + tableView.refreshControl = syncControl SVProgressHUD.setDefaultMaskType(.black) tableView.register(UINib(nibName: "PasswordWithFolderTableViewCell", bundle: nil), forCellReuseIdentifier: "passwordWithFolderTableViewCell")