https://kotlinlang.org logo
#koin
Title
# koin
a

Austin Pederson

08/02/2022, 6:13 PM
Hey can anyone that uses Koin in a KMM project let me know how I can instantiate a dependency in iOS code and then add it to the dependency graph of Koin?
I actually figured it out. I had to create a helper method in KMM that would accept an object of the type I was trying to add. Then that method would call
koin.declare
and pass the object I was trying to add to the dependency graph