Please let me know if I'm integrating compose in my existing Android Application or IOS, with some module. moving forward let's say it's integrated well in project now problem statement is , with compose UI just suppose it's a list view when click on any list it will open any Viewcontroller in iOS project and Activity in existing android project , need 2 way communication Compose -> existing project controller navigation and existing project controller -> Compose , how to achieve same or anyone did same ?
i
iXPert12
09/20/2023, 6:49 AM
Basically you want to remove compose navigation and use the platform/native navigation. In android this is doable, since at the base you have an activity you can use startActivity on a compose button click, but on iOS you can wrap any composable function into an UIViewController from kotlin iOS code, and the use it your iOS project like these: fun MainViewController() = ComposeUIViewController { App()}
https://proandroiddev.com/jetpack-compose-multiplatform-android-ios-4a87ba417caa