Browse Source

some haptic feedback on entering multi-select mode

B. Petersen 3 years ago
parent
commit
2149e64b3a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      deltachat-ios/View/ContactCell.swift

+ 2 - 0
deltachat-ios/View/ContactCell.swift

@@ -219,6 +219,8 @@ class ContactCell: UITableViewCell {
         if sender.state == UIGestureRecognizer.State.began,
            let tableView = self.superview as? UITableView,
            let indexPath = tableView.indexPath(for: self) {
+            let generator = UIImpactFeedbackGenerator(style: .medium)
+            generator.impactOccurred()
             delegate?.onLongTap(at: indexPath)
         }
     }