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

Show parent comment

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