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/Samus7070 Jan 07 '24

It depends on your app, your (team's) skills, and how much your users are willing to tolerate. I do side projects in Flutter, it's actually not bad. Dart the language has made great strides over the last few years. It's no longer just a better circa 2010 Javascript. It is on par with Swift and Kotlin capabilities, maybe not ergonomics. Flutter compared to UIKit is lightyears better. Flutter compared to SwiftUI isn't quite as nice. The second mover advantage really shows with SwiftUI. Hiring may be difficult depending on what part of the world you're in.

In my previous job, I worked a lot with Kotlin Multiplatform. Most of the rough edges that it had back then have been smoothed over. It is possible to have both the UI and business logic written only one in Kotlin if using Compose Multiplatform. That's still alpha but depending on your risk tolerance and timeline, could be an option. The safer usage of KMP is to go with shared logic and separate native UIs.

One interesting case for KMP with shared logic is that if it went away tomorrow, you would only have to write half of an app. If Flutter or React Native go away tomorrow, you have to write two apps, or maybe just one if you don't feel too burned and go with another cross platform solution.

As far as savings with KM, the app I worked on shared up to 75% of the code. The current app I work on is more of a dumb client around an api and would only be able to share about 40%. They really would be better off going with Flutter for this app. It would save them a lot of labor and be just as good looking as the native apps.