//
//  AlertController.swift
//  BitcoinTracker
//
//  Created by Daniel Henshaw on 15/3/19.
//  Copyright © 2019 Dan Henshaw. All rights reserved.
//

import UIKit

/*
Alert view added to superview when triggered by network request
*/

class AlertView: NSObject {
    
    class func showAlert(view: UIViewController, title: String, message: String){
        let alertController = UIAlertController(title: title, message: message, preferredStyle: UIAlertController.Style.alert)
        let okAction = UIAlertAction(title: "OK", style: UIAlertAction.Style.default, handler: nil)
        alertController.addAction(okAction)
        view.present(alertController, animated: true, completion: nil)
    }
}
