Is there a way to get dependency from kodein objec...
# kodein
i
Is there a way to get dependency from kodein object on IOS in kotlin/native project?
y
you can't use it directly from Swift, so you need to define wrapper function in Kotlin
Copy code
// DIUtil.kt
fun getFoo(kodein: Kodein): Foo {
  return kodein.direct.instance()
}
👍 1
and call it from swift
Copy code
let foo = DIUtilKt.getFoo(kodein)
i
@yshrsmz thats exactly what I did, thanks man!