Replies: 1 comment
-
|
Never mind, was too quick to ask. It's obvious when I looked at it a bit closer. You'd just take these instances in the method to retrieve the ComposeUIViewController for iOS, and pass them to the the root composable (e.g App()) |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
According to the documentation we're supposed to initialize and create the Koin application using the new KoinApplication in compose. Previously when using startKoin, it was trivial to provide instances of natively implemented interfaces.
We could create some Kotlin function e.g initKoin, that would take instances of Kotlin interfaces as parameters. In Swift we could implement these interfaces, create and pass instances to the method initKoin. Then in initKoin we could set up a module and call startKoin.
How would I achieve this if using KoinApplication in compose?
Beta Was this translation helpful? Give feedback.
All reactions