I wonder though if it's possible to use compose without compose UI and consume a composable function from swift.
h
hfhbd
08/25/2022, 7:45 AM
I guess, it is possible, and what Cash does with redwood https://jakewharton.com/multiplatform-compose-and-gradle-module-metadata-abuse/. But you still have to implement the Swift compose applier. Open question is the implementation because lacking swift support from Kotlin. And what do you want to share with compose? For data, you could use Flows instead, which works almost out of the box with Swift.
p
Paul Woitaschek
08/25/2022, 7:46 AM
A view state. Using regular composables on droid and molecule on iOS should work
h
hfhbd
08/25/2022, 8:07 AM
I guess redwood does exactly this. It fits perfectly into cash projects with molecule. Just wait until september 1: https://nyc.droidcon.com/jake-wharton/