Hacker News new | ask | show | jobs
by supercucumber 1270 days ago
System Preferences was rewritten for Ventura in SwiftUI, which is absolutely not ready for production, especially on Mac. Speaking from personal experience, I recently wrote a simple macOS app using SwiftUI. I found the framework to be slow (why does it use so much cpu/memory when idle??), unintuitive, and awkward to use. Despite being in its 4th year, SwiftUI is still very much beta software, and I wouldn’t recommend using it for anything serious.
1 comments

As a counterpoint, I’ve done several Mac apps with SwiftUI for internal use and it’s been quite pleasant. Early SwiftUI was definitely rough, but it’s quite nice now as of Monterey and Ventura.

If you’re seeing high CPU use and slow performance, it might be due to high usage of ObservableObject or other things that may be triggering updates under the hood more often than need be.

SwiftUI is very sensitive to the data model structure since it’s a react style setup.

Apple really needs to put some effort into evangelizing SwiftUI — some of the problem is poor or nonexistent Apple documentation and some is that every Stackoverflow answer is obsolete because the documentation is still so poor.

You can still run into walls with SwiftUI, but there are fewer of them than there used to be.