change long press copy experience
This commit is contained in:
parent
f9e42b9490
commit
563156b0a4
1 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
|||
}
|
||||
cell.textLabel?.text = password.name
|
||||
let longPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(longPressAction(_:)))
|
||||
longPressGestureRecognizer.minimumPressDuration = 1.0
|
||||
longPressGestureRecognizer.minimumPressDuration = 0.6
|
||||
cell.addGestureRecognizer(longPressGestureRecognizer)
|
||||
return cell
|
||||
}
|
||||
|
|
@ -152,9 +152,9 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
|||
password = passwordEntities![index]
|
||||
}
|
||||
do {
|
||||
let generator = UIImpactFeedbackGenerator(style: .medium)
|
||||
let decryptedPassword = try password.decrypt()!
|
||||
UIPasteboard.general.string = decryptedPassword.password
|
||||
let generator = UIImpactFeedbackGenerator(style: .medium)
|
||||
generator.impactOccurred()
|
||||
SVProgressHUD.setDefaultMaskType(.clear)
|
||||
SVProgressHUD.setDefaultStyle(.dark)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue