I\'m trying to get indexPath on the cell when it is tapped twice. I\'m passing arguments in Selector like this but it is giving error. What is the
indexPath
Selector
Change your code to.
let tap = UITapGestureRecognizer(target: self, action: #selector(doubleTapped(_:)))
and the function to.
func doubleTapped(_ sender: AnyObject) { print("Double Tap") }