News for hackers. Stuff that matters.
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