title: Single and double taps on UITableViewCell in Swift 3
body: <p>I have storyboard segue on TableViewCell, which I use for transfering to another VC on cell click in <code>didSelectRowAt</code> method. Now I made double tap <code>TapGestureRecognizer</code> to handle touble tap on cell. Problem is that on single tap, segue is performing and double tap is not working. Double tap works fine with clicking out of cell. Is possible to solve this somehow with my code so far? Or I need to delete segue and handle single tap and double tap separately. 
  Thanks for any suggestions</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  
      let doubleTap = UITapGestureRecognizer(target: self, action: #selector(handleDoubleTap))
      doubleTap.numberOfTapsRequired = 2
      view.addGestureRecognizer(doubleTap)
  }
  
  func handleDoubleTap(recognizer: UIGestureRecognizer) {
      let p = recognizer.location(in: tableView)
  
      let indexPath = tableView.indexPathForRow(at: p)
  
      if let _ = indexPath {
          tableView.deselectRow(at: indexPath!, animated: true)
          update(index: (indexPath?.row)!, isFinished: true)
      }
  
      print ("doubke")
  }
  
  
  override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if (segue.identifier == "showSingleTask") {
          if let indexPath = tableView.indexPathForSelectedRow {
              let nav = segue.destination as! UINavigationController
              let destinationVC = nav.topViewController as! ShowTaskVC
              destinationVC.singleTask = tasks[indexPath.row]
          }
      }
  }
  
  func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  
      tableView.deselectRow(at: indexPath as IndexPath, animated: true)
      self.selectedTask = tasks[indexPath.row]
  }
  </code></pre>