r/iOSProgramming • • Sep 12 '26

Question Anyone here switched from React Native to SwiftUI?

I’m seriously thinking about moving from React Native to SwiftUI.

If you’ve made the switch, how was the learning curve for you? Did you find SwiftUI harder to pick up than React Native, and roughly how long did it take before you felt comfortable enough to actually build and ship apps?

I’m still on the fence about making the switch, so I’d also love to hear if you think it’s worth it.

Would love to hear from anyone who’s been through it.

13 Upvotes

44 comments sorted by

View all comments

21

u/SnowPudgy Sep 12 '26

To expand on my previous comment:

Once you go native, it's hard to go back to anything. You write far less code, things work much better, you get to use all the new stuff right away without waiting for any type of framework update, and you have a much easier time debugging.

We banned cross platform at work after staggering maintenance costs and trained the React devs on native and it was the best decision we ever made. There's so much less maintenance overhead with native code.

3

u/peppaz Sep 12 '26

I have a cross platform rust/tauri2 app and while sharing most of codebase is great, the benefits are not there instead of going native on each platform considering the overheard

4

u/apocolipse Sep 12 '26

The problem is rust/tauri2 isn’t native on any platform.  A good cross platform architecture for apps should build the core (the parts of the app where platform specific features don’t matter) in something platform agnostic, but leave the UI (and any other part that does rely on platform specific features) to be done in platform native code. When you try to have a blanket solution, the set of capabilities is inherently limited by its nature to the small subset of capabilities where all platforms intersect, and you’re just locking yourself out of capabilities outside of that subset. Granted, there are plenty of applications where a generic UI using that limited subset is perfectly adequate.  They don’t need specific App Store integrations or don’t use share extensions or call other OS related services, the scope of what they provide will never need to escape that subset, those are great candidates for using cross platform frameworks.  However, most of those are done in proton anyway, because they also don’t really need or care about performant UIs either.

1

u/peppaz Sep 12 '26

The core is JavaScript, the wrappers and hooks are rust and tauri

5

u/apocolipse Sep 12 '26

That’s even worse.

1

u/peppaz Sep 12 '26

Well the real answer for the decision is that is also a live webapp in the web, packaged for app stores as well to include CLI / scripting for both macos and windows. It's a complex app lol but it's useful and sells well

1

u/apocolipse Sep 12 '26

That’s what wasm is for, JavaScript should just be the “platform native UI code” for web, and nothing more.

1

u/peppaz Sep 12 '26

I mean it's both, wasm has to talk to or rely on JS for a lot of stuff it can't do

1

u/epicstar Sep 12 '26 edited Sep 12 '26

Yup totally agree. Anecdotally, the best cross platform projects are one such that the core business is in C++ (Rust IMO is better than C++ but no experience with Rust yet). The UI meanwhile is native in both Swift and Kotlin. Unfortunately most cross platform apps I have worked on are a unified UI cross platform arch (React Native and even worse... Xamarin Forms) and it ends up that the business code is scattered in both Kotlin and Swift anyway. There is friction once you get away from the RN/Xamarin features ex background fetching and more. There isn't any such friction when doing the other paradigm.

1

u/apocolipse Sep 12 '26

Swift and Kotlin can both do sufficient “core business logic” decently if app architecture is disciplined enough to cleanly decouple from UI.  Honestly Swift will start looking a hell of a lot better soon, it’s new borrowing/ownership/lifetime semantics are bringing its performance up to be neck-and-neck with rust now, and people are finding it kicks ass on server too (where Kotlin has a lot of individual process spawn overhead Swift just doesn’t). And it runs on embedded now too, I just wrote a port of Doom to run on a raspberry pi pico 2w all in swift, it’s only got half a mb of ram lol (Kotlin could never)

1

u/Vanillalite34 Sep 13 '26

Lmao Xamarin. First time I’ve heard anyone bring that up since before Covid lol

1

u/counterplex Sep 12 '26

I’m working on an app these days where my multi-platform code reuse tool of choice is Kotlin MultiPlatform. The UI stays native but most of the core logic becomes reusable which, it seems to me, might be the best of both worlds.

2

u/apocolipse Sep 12 '26

You can do the same with Swift now too, I have an app with core business logic, api, db layer, etc all isolated in a swift module.  Then I have native SwiftUI front ends for it for iOS and Mac, Jetpack compose front end on Android, I even got a terminal UI and working on a (simpler) SDL variant too that should run on Windows and Linux no problem.  Like noted by Shopify, LLMs make keeping those native isolated UI layers all consistent, and the architecture lets me feel confident having LLMs build out “just the UI layer” in something I’m less familiar with while keeping all the real work in something I’m an expert at and can predict the performance of.

3

u/theraad1 Sep 12 '26

We switched from native to RN a year ago and all the mobile engineers are so sick of vibe coding features they barely understand.

Plus you gotta love the occasional critical incident because a package we somehow depend on accidentally released a bug.