Skip to content

Instantly share code, notes, and snippets.

@StanislavK
Created September 1, 2017 08:18
Show Gist options
  • Save StanislavK/98e95724fbcd0608da2b035952767355 to your computer and use it in GitHub Desktop.
Save StanislavK/98e95724fbcd0608da2b035952767355 to your computer and use it in GitHub Desktop.
import Foundation
import UIKit
class Alert {
class func showBasic(title: String, message: String, vc: UIViewController) {
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
vc.present(alert, animated: true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment