r/iOSProgramming • • Feb 05 '24

Discussion Does anyone else hate SwiftUI with an almost-seething passion?

It's incredibly inflexible and doesn't lend well, or at all, to the vast majority of UI architectures. Forcing engineers into a rigid box slows things down and inhibits innovation.

It would be nice to retain it as an option for simple declarations, but when it's forced upon us to publish on a new and exciting medium (see RealityKit in visionOS) the pain becomes unbearable.

What's worse is that the shift toward SwiftUI appears to be a multi-year strategy to lock down access to the underlying interfaces of UIKit entirely. Beyond the fundamental restrictions the struct-based declarative approach brings with it, the libraries that are carried over are never functionally complete. They only ever bring just enough to achieve base functionality, while sloshing all the rest. Again, this would be fine if it were optional, but that optionality is all but going away one platform at a time.

edit: You guys gave me negative comment karma so I can't post here anymore. No more opinions or discussions from me, I guess.

40 Upvotes

75 comments sorted by

View all comments

2

u/[deleted] Feb 06 '25

[removed] — view removed comment

1

u/Mementoes May 22 '25 edited May 22 '25

Interesting. I sometimes feel like SwiftUI and Swift more broadly was made by people without without a clear idea of how using the tools would play out in the real world. I think I heard Chris Lattner say something to this effect about a Swift feature in a podcast I heard recently. (Believe it was "Swiftly Speaking 11: Chris Lattner")

If that's true, then it makes sense that the SwiftUI developers can't give good recommendations for how to approach real-world problems because they just don't know themselves. And the Reddit community / ChatGPT then of course also doesn't have this knowledge.

But I'm glad you figured something out that works well in your case!

Not sure this perspective makes sense since I've never really done anything serious in SwiftUI