The new alert on sonoma when you have 8 > actions its shows horizontal and goes out of the screen.
Is there any way to bring back the old alert?
let alert = UIAlertController(title: "Alert", message: "Message", preferredStyle: UIAlertController.Style.alert)
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.destructive, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.destructive, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.destructive, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.destructive, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.destructive, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
alert.addAction(UIAlertAction(title: "Click", style: UIAlertAction.Style.default, handler: nil))
self.present(alert, animated: true, completion: nil)