I\'ve created a UIAlertView that contains a UIActivityIndicator. Everything works great, but I\'d also like the UIAlertView to disappear after 5 seconds.
Ho
I'm not an expert but this works for me and I guess is easier
let alert = UIAlertController(title: "", message: "YOUR MESSAGE", preferredStyle: .alert) present(alert, animated: true) { sleep(5) alert.dismiss(animated: true) }