diff --git a/pass/Controllers/PasswordsViewController.swift b/pass/Controllers/PasswordsViewController.swift index aa5629f..d86aebb 100644 --- a/pass/Controllers/PasswordsViewController.swift +++ b/pass/Controllers/PasswordsViewController.swift @@ -174,12 +174,13 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV } else { cell.textLabel?.text = "↻ \(entry.title)" } + + let longPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(longPressAction(_:))) + longPressGestureRecognizer.minimumPressDuration = 0.6 + cell.addGestureRecognizer(longPressGestureRecognizer) } else { cell.textLabel?.text = "\(entry.title)/" } - let longPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(longPressAction(_:))) - longPressGestureRecognizer.minimumPressDuration = 0.6 - cell.addGestureRecognizer(longPressGestureRecognizer) return cell }