https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

coletz

03/15/2020, 1:38 PM
Hi everyone, I'm working on an android/ios project. I didn't used mpp in the last few months, so I'm not aware of the state of the art. Is there any way to use generics on kotlin and have them recognized in swift? I remember a draft from kpgalligan about that but I don't know if that's actually implemented in the latest k/n release
j

Jurriaan Mous

03/15/2020, 1:47 PM
Yes. Everything is described in the online documentation https://kotlinlang.org/docs/reference/native/objc_interop.html#generics
🙏 1
c

coletz

03/15/2020, 2:57 PM
any idea on how one should use list/arrays? Arrays are translated to KotlinArray which are not iterable (I can create an extension to create an NSArray, but that would be strange). List/ArrayList are translated to NSArray which are not typed
4 Views