Created
November 2, 2017 12:11
-
-
Save pgpt10/a481408542586b09fd7c4ebf4ed69ece to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? | |
{ | |
let deleteAction = UITableViewRowAction(style: .destructive, title: "Delete") { (action, indexpath) in | |
print("Delete Action Tapped") | |
} | |
deleteAction.backgroundColor = .red | |
return [deleteAction] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment