Created
June 24, 2019 21:04
-
-
Save yanil3500/1a69ac3c7ed5114fbca05b111362f427 to your computer and use it in GitHub Desktop.
Show Basic Alert Controller
This file contains 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
// | |
// Alert.swift | |
// DoTryCatch | |
// | |
// Created by Sean Allen on 8/30/17. (Big ups to Sean Allen) | |
// Copyright © 2017 Sean Allen. All rights reserved. | |
// | |
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