pkamppur / mobile-sdk-comparison-2020

MIT License
5 stars 2 forks source link

Thoughts on how these frameworks work for extending older apps? #3

Open hermu opened 4 years ago

hermu commented 4 years ago

Any thoughts on how the various frameworks work when combining them with older code e.g. around existing UIKit components?

pkamppur commented 4 years ago

With SwiftUI it's easy, Apple has made it part of the SDK very nicely. Check out UIViewControllerRepresentable, for example.

React Native also has ways to embed old UIKit stuff: Native UI Components.

Flutter has UiKitView for embedding UIViews to Flutter Widget hierarchy.

I'm sure there are gotchas and cornercases for all these (there's always something 😄), but in theory support is there.