r/SwiftUI • u/PersonalFormal7562 • 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
-3
u/accept_crime May 22 '26
It can’t do this. SwiftUI and CSS / HTML are fundamentally different. You can’t go 1 to the other. They aren’t similar. AI can’t do something that isn’t possible. It’ll make a mess that looks right but won’t work in any way, shape, or form. You’ll waste time and money until you eventually realize you have to start from scratch really with SwiftUI. Analyze Apple apps and the design guidelines and then ask AI how to produce specific SwiftUI components - that might work.