UIAlertActionStyle has been renamed to UIAlertAction.Style
//4.0 alert.addAction(UIAlertAction(title: "Cancel", style: UIAlertActionStyle.destructive, handler: nil))
//4.2 alert.addAction(UIAlertAction(title: "Cancel", style: UIAlertAction.Style.destructive, handler: nil))
If this helped you, share and pass it on! 😀 ➡️ 🐦