Browse Source

Merge pull request #1608 from deltachat/feedback-on-enter-multi-select

some haptic feedback on entering multi-select mode
cyBerta 3 năm trước cách đây
mục cha
commit
26fb142752
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)
         }
     }