Hey! 👋
I’ve seen the way KaMPkit and John O’Reilly’s
People in Space
handle the Koin injection in a multiplatform project and both are pretty cool. But in the long term, you will also need a DI framework for the Swift app.
I know this is a long, shot, but is there any way or future plan to include the injection on the iOS app itself using Koin?
I mean, not needing another DI framework.
This would make Koin super powerful in multiplatform projects.
What do you think? Is it possible in any way?
r
russhwolf
07/12/2021, 4:32 PM
There's some technical limitations here with Koin's current architecture. Currently everything on the Koin graph is tagged with a KClass. But that doesn't exist for Obj-C types. Also, the generics and type inference behave differently so it's difficult to expose Koin's existing API to Obj-C/Swift.
n
Nacho Ruiz Martin
07/12/2021, 5:00 PM
Thanks for your answer.
That makes sense. I expected some technical limitations there, being honest.
In KaMPkit there isn't any DI Framework for the iOS app, do you usually use one or something custom made?