kgonyon01/21/2019, 9:58 PM
of an object defined in Kotlin from Swift? I have a function defined in Kotlin that has an argument
and I need a way to call that function from Swift, but not sure how to pass in the type.
svyatoslav.scherbina01/22/2019, 8:19 AM
of an instance? Like in
fun getClassOf(obj: Any) = obj::class
kgonyon01/22/2019, 4:13 PM
in Swift. The kotlin function definition would be
. In the context which I am using it, I have a global factory to inject instances of a presenter thus I don't have the instance just the class that I want an instance of.
fun <T> get(type: KClass<T>): T
svyatoslav.scherbina01/23/2019, 7:57 AM
a class or an interface?
kgonyon01/23/2019, 3:02 PM
would be an abstract class defined in Kotlin.
svyatoslav.scherbina01/24/2019, 12:51 PM
kgonyon01/24/2019, 4:22 PM