Skip to content

Instantly share code, notes, and snippets.

@davut
Created September 27, 2018 18:30
Show Gist options
  • Save davut/4258c7e068b182da4fa179fb6d9add65 to your computer and use it in GitHub Desktop.
Save davut/4258c7e068b182da4fa179fb6d9add65 to your computer and use it in GitHub Desktop.
func myAlertVC(title: String, message: String, actionTitle: String) {
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
let action = UIAlertAction(title: actionTitle, style: .default, handler: nil)
alertController.addAction(action)
present(alertController, animated: true, completion: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment