Post

Replies

Boosts

Views

Activity

Reply to UIAlertController new design on Mac OS Sonoma
Hi, I had the same problem with my App since I installed Mac OS Sonoma. By chance I discovered a way to work around this... Just try: let alert = UIAlertController(title: "", message: "", preferredStyle: UIAlertController.Style.actionSheet) with a null title, message and actionSheet Style In my case this solved half of the problem at this step. The presentation is good but of course the title disappeared. And then you can install a title with alert.setValue Hope it helps!
Nov ’23
Reply to UIAlertController new design on Mac OS Sonoma
Hi, I had the same problem with my App since I installed Mac OS Sonoma. By chance I discovered a way to work around this... with legal programming of course. Just try: let alert = UIAlertController(title: "", message: "", preferredStyle: UIAlertController.Style.actionSheet) with a null title, message and actionSheet Style In my case this solved half of the problem. The presentation is good but of course the title disappeared. So after creating the controller you install the title, in bold font for instance and then your actions just as you do **let txt = NSMutableAttributedString(string: "Alert") let boldFont = UIFont.boldSystemFont(ofSize: 16) //for instance) let attributes = [NSAttributedString.Key.font: boldFont] alert.setValue(NSAttributedString(string: txt.string, attributes: attributes), forKey: "attributedTitle")** Miracle for me, the result is what is expected. However It is just a workaround. There is another change with UIAlertController on Sonoma, it is no more a popoverController. I hope this will help you.
Nov ’23