Skip to content

Instantly share code, notes, and snippets.

@yanil3500
Created June 24, 2019 21:04
Show Gist options
  • Save yanil3500/1a69ac3c7ed5114fbca05b111362f427 to your computer and use it in GitHub Desktop.
Save yanil3500/1a69ac3c7ed5114fbca05b111362f427 to your computer and use it in GitHub Desktop.
Show Basic Alert Controller
//
// 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