You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
577 B
21 lines
577 B
//
|
|
// Created by Marco Schmickler on 23.01.22.
|
|
// Copyright (c) 2022 Marco Schmickler. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
extension UIViewController {
|
|
func showAlert(title:String, message:String ) {
|
|
|
|
let alertVC = UIAlertController(title: title, message: message, preferredStyle: .alert)
|
|
|
|
let okAction = UIAlertAction(title: "Ok", style: .default, handler: nil)
|
|
alertVC.addAction(okAction)
|
|
|
|
DispatchQueue.main.async() { () -> Void in
|
|
self.present(alertVC, animated: true, completion: nil)
|
|
}
|
|
}
|
|
}
|