Skip to content

Instantly share code, notes, and snippets.

@jazzedge
Created December 21, 2017 15:56
Show Gist options
  • Save jazzedge/41f69e0189ef9f1029e0c6668eb514e0 to your computer and use it in GitHub Desktop.
Save jazzedge/41f69e0189ef9f1029e0c6668eb514e0 to your computer and use it in GitHub Desktop.
displayAlertWithTitle(title: "Detected", message: "Edge swipe was detected")
/* Just a little method to help us display alert dialogs to the user */
func displayAlertWithTitle(title: String, message: String){
let controller = UIAlertController(title: title,
message: message,
preferredStyle: .alert)
controller.addAction(UIAlertAction(title: "OK",
style: .default,
handler: nil))
present(controller, animated: true, completion: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment