Hacker News new | ask | show | jobs
by aaaaaaaaaaab 1406 days ago
>after being told it's "the future" in unequivocal terms

Who told you this? :D

SwiftUI is mostly useful for apps that show a bunch of nested lists. Basically websites, but natively. It's Apple's answer to React Native or something, and it looks cool in demos with the live preview and whatnot. But serious apps like Pages, FCP, Finder, Calendar, etc. will never be written with SwiftUI. The paradigm is just too wasteful for these kinds of interactive apps.

Heck, large apps aren't even using Swift! It's just too inefficient at their scale. And before you say it's due to legacy ObjC code - no, Facebook rewrote Messenger from scratch in ObjC(++) a few years ago. Swift is cute, but it lacks the maturity and stability of ObjC.

2 comments

> Who told you this? :D

Apple explicitly said so in a WWDC 2022 video. I think it’s the State of the Platform one, or if I’m wrong, the one titled like What’s New in SwiftUI. Their statement is that while UIKit and Objective-C will serve us for a long time, the best way to write new apps for Apple platforms is with Swift and SwiftUI.

I don’t believe that though. Swift is a great language, I agree, but UIKit is way ahead of SwiftUI and I would never use SwiftUI in a product where meeting deadlines matters, at least not in the next 3 or more years.

> The paradigm is just too wasteful for these kinds of interactive apps.

Nonsense.