Skip to content

Instantly share code, notes, and snippets.

@RobertoD91
Created April 2, 2020 16:56
Show Gist options
  • Save RobertoD91/6f1f05315579620a22515f127f7d51a0 to your computer and use it in GitHub Desktop.
Save RobertoD91/6f1f05315579620a22515f127f7d51a0 to your computer and use it in GitHub Desktop.
test medium swift
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
@IBAction func showMessage(sender: UIButton) {
let alertController = UIAlertController(title: "Welcome to My First App", message: "Hello World", preferredStyle: UIAlertController.Style.alert)
alertController.addAction(UIAlertAction(title: "OK", style: UIAlertAction.Style.default, handler: nil))
present(alertController, animated: true, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment