Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active February 3, 2019 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/8e8e1967a43ce2d8a8d6eb53296f3de8 to your computer and use it in GitHub Desktop.
Save laevandus/8e8e1967a43ce2d8a8d6eb53296f3de8 to your computer and use it in GitHub Desktop.
optional func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?
optional func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?
override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
switch editingStyle {
case .delete:
showAlert("Delete triggered")
case .insert, .none:
break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment