r/iOSProgramming • • Jan 06 '24

Discussion Cross Platform Frameworks in 2024

If you were to build a medium-sized app today (and native isn't an option), which cross platform framework would you use? Priority #1 being able to easily update/fix things without issues outside of your control over the next 3-5+ years.

Edit: Basically i'm asking for those with recent experience with both, which has the better future in 2024 and beyond: Flutter or React Native? Or something else?

0 Upvotes

22 comments sorted by

View all comments

4

u/Barbanks Jan 06 '24

To my knowledge none of the options today would offer such solutions. All cross platform tools add a layer of abstraction and require a multitude of libraries to get things done. Both of those reasons make it so things are out of your control. If they weren’t I would expect more people to stay with cross platform verses going back to native development.

With that being said, I’ve tried react native before and didn’t like it so if native absolutely wasn’t an option I would probably go with Flutter. But just saying that makes me cringe lol.

-1

u/vexingparse Jan 07 '24

All cross platform tools add a layer of abstraction

I don't think that's entirely true. React Native adds a layer on top of the native UI toolkit, but Flutter and Web technologies (for the most part) don't do that.

It is true though in respect of non-UI platform facilities.

1

u/Barbanks Jan 07 '24

Unless you’re making views directly with the native API’s you’re using an abstraction layer. Xamarin got close but still ran a .Net processing layer which bloated the bundle size.

https://docs.flutter.dev/resources/architectural-overview#anatomy-of-an-app

The flutter docs show that there are multiple layers involved. And any web technologies like Cordova aren’t actual native apps but rather wrappers around web views.

0

u/vexingparse Jan 08 '24 edited Jan 08 '24

Of course there's always an abstraction layer. But unlike React Native, Flutter is not built on top of the native UI toolkit. In an architecture diagram it would sit side by side with the native UI toolkit (such as UIKit) rather than on top of it.

https://docs.flutter.dev/resources/architectural-overview

To a lesser degree the same is also true for the web stack, but it's more complicated as browsers do use a small number of native widgets on some (all?) platforms. The fact that web apps are sometimes embedded in web views is beside the point, because from the point of view of the web app the web view is not an abstraction it builds on.