UIAlertControllerStyle has been renamed to UIAlertController.Style
//4.0 let alert = UIAlertController(title: title, message: msg, preferredStyle: UIAlertControllerStyle.alert)
//4.2 let alert = UIAlertController(title: title, message: msg, preferredStyle: UIAlertController.Style.alert)
If this helped you, share and pass it on! 😀 ➡️ 🐦