kgonyon
01/21/2019, 9:58 PMKClass of an object defined in Kotlin from Swift? I have a function defined in Kotlin that has an argument type: KClass and I need a way to call that function from Swift, but not sure how to pass in the type.svyatoslav.scherbina
01/22/2019, 8:19 AMKClass of an instance? Like in fun getClassOf(obj: Any) = obj::class?kgonyon
01/22/2019, 4:13 PMkgonyon
01/22/2019, 4:47 PMget(type: Foo::class) in Swift. The kotlin function definition would be fun <T> get(type: KClass<T>): T. 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.svyatoslav.scherbina
01/23/2019, 7:57 AMFoo a class or an interface?kgonyon
01/23/2019, 3:02 PMFoo would be an abstract class defined in Kotlin.svyatoslav.scherbina
01/24/2019, 12:51 PMkgonyon
01/24/2019, 4:22 PM