1 2 3 4 5
... DispatchQueue.main.async { self.present(alertController, animated: true, completion: nil) } ...
... DispatchQueue.main.asyncAfter(deadline: .now()) { self.present(alert, animated: true, completion: nil) } ...
You can clone a snippet to your computer for local editing. Learn more.