override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let row = indexPath.row
let meal = meals[row]
let cell = UITableViewCell(style: UITableViewCell.CellStyle.default, reuseIdentifier: nil)
cell.textLabel!.text = meal.name
return cell
let longPressRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(showDetails))
cell.addGestureRecognizer(longPressRecognizer)
}
Tive que usar o @objc para compilar assim como o xcode recomendou
@objc func showDetails(){
print("Long press now")
}