Last active
January 7, 2022 16:05
-
-
Save RealEmmettS/fc335fd4cac9d7f98d0a7301951ed9f7 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 showAlert(title: String, message: String, continueTitle: String, cancelTitle: String, addCancelButton cancel: Bool){ | |
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) | |
alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: nil)) | |
if cancel { | |
alert.addAction(UIAlertAction(title: "No", style: .cancel, handler: nil)) | |
} | |
self.present(alert, animated: true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment