Created
December 21, 2017 15:56
-
-
Save jazzedge/41f69e0189ef9f1029e0c6668eb514e0 to your computer and use it in GitHub Desktop.
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
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