This file contains hidden or 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
| 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 |