-
Notifications
You must be signed in to change notification settings - Fork 22
Description
In Android we have interop with Android-specific Renderers such as ViewBindingRenderer. It can be the case that in iOS the need for interop will also arise. Investigate how we can support this.
Some examples interop are:
-
Launching nested presenters from Compose that render native SwiftUI. This is ideally what we would do with the Recipes app and the SwiftUI recipe, since our other recipes use CMP for UI and should stay like that, while the recipe for SwiftUI should demonstrate a presenter that results in some SwiftUI being shown. Currently
RendererFactorygets in the way, and we need to think about how we want to support the interop, if at all. -
Embedding SwiftUI in
ComposeRenderer. This will support non-fullscreen use cases. For example, if we have a screen with many widgets, a couple of the widgets might want to use native UI while others can use CMP. This one is more ambiguous and it is unknown if we can support at this time, needs experimentation. If we can we will likely introduceSwiftUiRenderer