DEV Community

Noah Trupin
Noah Trupin

Posted on

Does anyone else dislike SwiftUI?

I've been in iOS development for years now, and have always worked with UIKit programmatically (no storyboards). Therefore, the code for my UI has always been very Swift-y, and fit in well with the rest o my codebase.

When SwiftUI came out, I tried to get on board, but it was too unstable at the time and I decided to come back later.

This week, since SwiftUI 2.0 was released, I decided to give it another shot. Spun up a project, built a simple To-Do app, and came out with a dislike for SwiftUI. It just feels out-of-place in an iOS codebase, not quite Swift-y enough, with the "building blocks", almost childish feel of the UI code.

Don't get me wrong, I love some aspects of the new structure: Combine and the other SwiftUI property wrappers are amazing, and greatly simplify some painful aspects of building iOS apps. But SwiftUI itself, and its style, has disagreed with me thus far.

Does anybody else feel this way?

Discussion (5)

l0uiscouture profile image
Louis Couture ❤️🏳️‍🌈🇺🇳⚜️

I really like SwiftUI. I think it’s a more simple way to build applications. Again I have a web développement background, so what you may want to do is to get used to the declarative way of thinking.

hmlongco profile image
Michael Long

I've written several Medium articles on this, but really the biggest thing to remember is that SwiftUI "Views" aren't views at all.

They're definitions of views. SwiftUI really requires a different mindset and a totally different way of building and constructing iOS applications.

m4rcoperuano profile image
Marco Ledesma

Still in the process of building a full app with it, and it’s going...okay. I love the reactivity of things and doing animations in it is super simple, but I get where you’re coming from. Trying to make a simple money management app connected to an API. No blockers so far.

dasdom profile image
Dominik Hauser

I feel the same. I'd like to like it. But I'm not there yet.

gokayokyay profile image
Gökay Okyay

Totally same here. It looks like a some template language, not quite swifty.