let alertController = UIAlertController(title: "Warning!", message: "This will do some crazy stuff! This cannot be undone", preferredStyle: .alert) let cancelAction = UIAlertAction(title: "Cancel", style: .cancel) { action in print("Cancel button pressed") } alertController.addAction(cancelAction) // maybe some stuff let deleteAction = UIAlertAction(title: "Delete", style: .destructive) { action in // .destructive = RED text, .default = blue text // some stuff // probably need this if using in a tableView self.tableView.reloadData() print("Delete button pressed") } alertController.addAction(deleteAction) self.present(alertController, animated: true) { // ... }