Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
477 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: uialertController
  3. # key: uialertController
  4. # --
  5. let alert =
  6. UIAlertController(title: $1,
  7. message: $2,
  8. preferredStyle: .alert)
  9. alert.addAction(UIAlertAction(title: "",
  10. style: .default,
  11. handler: { (action) in
  12. alert.dismiss(animated: true, completion: {
  13. $0
  14. })
  15. }))
  16. self.presentViewController(alert, animated: true, completion: nil)