Haptica icon indicating copy to clipboard operation
Haptica copied to clipboard

Usage in table view?

Open danqing opened this issue 5 years ago • 0 comments

Thanks for this great library!

I'm trying to use it in a table view, and I have the following code:

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  Haptic.impact(.medium).generate()
  // Other stuff...
}

This generates haptic feedback, but sometimes it seems to be generating two very fast consecutive ones. It happens when you click on one cell and then another.

Is it the wrong way to use the library? Thank you!

danqing avatar Oct 15 '19 05:10 danqing