Skip to content

Investigate Renderer interop with SwiftUI #158

@JessalynWang

Description

@JessalynWang

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:

  1. 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 RendererFactory gets in the way, and we need to think about how we want to support the interop, if at all.

  2. 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 introduce SwiftUiRenderer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions