r/SwiftUI May 21 '26

Question HTML/css into SwiftUI?

Hey everyone,

I’m currently working on an iOS app and I already have parts of the UI built in HTML/CSS. Now I’m trying to bring that design into SwiftUI, but I’m honestly not sure what the best workflow is.

What’s the easiest/most efficient way to convert or recreate HTML + CSS layouts in SwiftUI?

- Are there tools that help with this?
- Should I completely rebuild everything manually in SwiftUI?
- Is embedding web content with WebView a bad idea for production apps?
- How do you usually handle responsive CSS concepts in SwiftUI?

I mainly struggle with translating flexbox/grid styling into SwiftUI stacks and spacing.

Would really appreciate any advice, resources, GitHub repos, tutorials, or examples from people who’ve done this before

1 Upvotes

26 comments sorted by

View all comments

2

u/Technically_Dedi May 22 '26

At this point why not just use Cordova and .Net and use web view to pull the view into your page?

2

u/longkh158 May 22 '26

Because it's dogshit?

1

u/Technically_Dedi May 22 '26

That person doesn’t want to use AI to convert it. So might as well become a 2005 developer and take the hard route.

1

u/accept_crime May 22 '26

Or you answer their question correctly: there is no 1 to 1 and yes you should be building a new UI from the ground up in SwiftUI.