News for hackers. Stuff that matters.
Re:UIs are not pure functions of the model (2018) by atwood22 on Monday July 04, 2022 @05:15PM (#31981869)
For what it’s worth, a lot of developers I know who work on complex iOS applications have more or less abandoned SwiftUI after trying it.
Re:UIs are not pure functions of the model (2018) by rudedogg on Monday July 04, 2022 @05:41PM (#31982046)
It takes quite a bit to wrap your head around the SwiftUI way of doing things. I think a lot of people get frustrated and throw in the towel. I'm sure React is the same story.

And while you can't do everything in SwiftUI, it's pretty solid and capable now. I only have a couple things using AppKit in a large macOS project.

Re:UIs are not pure functions of the model (2018) by epicureanideal on Monday July 04, 2022 @05:18PM (#31981889)
Why are they abandoning it? Could you please share reasons in as much detail as possible? Very interested to know.
Re:UIs are not pure functions of the model (2018) by ardit33 on Monday July 04, 2022 @05:47PM (#31982084)
It is fine for small toy apps (think the calculator), but it is missing a lot of functionality to build a full fledged app. Think collections, which is the backbone of most apps.

UIKit is very mature and has evolved to a really good UI platform. SwiftUI is not even close to unseat it. Maybe in few years it will mature as well, but for now UIKit is the way to go.

Re:UIs are not pure functions of the model (2018) by hbn on Monday July 04, 2022 @05:55PM (#31982144)
I only ever played around with making a toy app while following along with Stanford's Swift UI course[1], and even just the basic things I was doing there, I ran into multiple frustrating/confusing bugs.

As if it wasn't difficult enough to wrap your head around learning it in the first place, running into bugs makes it even harder because you think you're doing something wrong until you finally ask online and get told by people more knowledgeable than you, "I don't know why that's happening, wrap your view in a container and it'll work"

[1] https://youtube.com/playlist?list=PLpGHT1n4-mAsxuRxVPv7kj4-d...

Re:UIs are not pure functions of the model (2018) by interactivecode on Monday July 04, 2022 @06:15PM (#31982285)
At Beam[0] we are building a web browser that uses SwiftUI almost everywhere except for the text editor.

So far its been great to build UI and animations with. Each release gives SwiftUI more apis and features, so there are less and less older style apis to wrap in SwiftUI ourselves.

[0] https://hellobeam.com

Re:UIs are not pure functions of the model (2018) by kecupochren on Monday July 04, 2022 @06:51PM (#31982518)
Those scroll effects are quite janky on iOS btw