Replies: 1 comment
-
Yeah, it's pretty difficult to cover all possible patterns and templates. I think you should be able to create Something like this should work (from the top of my head): fun MainViewController(): UIViewController {
val lifecycle = LifecycleRegistry()
val context = DefaultComponentContext(lifecycle = lifecycle)
val root = DefaultRootComponent(context = context)
return ComposeUIViewController {
App(root = root)
DisposableEffect {
lifecycle.resume()
onDispose { lifecycle.destroy() }
}
}
} Also, there could be away to bind |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using this template https://github.com/JetBrains/compose-multiplatform-ios-android-template I created a project, however, it is not clear to me how I can create my RootComponent in the iOS target and pass it to my compose code. Maybe the documentation on this could be improved.
Beta Was this translation helpful? Give feedback.
All reactions