I saw, but this is not clear if KtN will allow us ...
# kotlin-native
r
I saw, but this is not clear if KtN will allow us to made apps for ios like we do for android or will just allow us to made things for iOS. 🤔
s
If you are thinking of trying to develop an iOS app entirely in Kotlin, that's not something that will be supported (I don't think it will at least. That would require a high level of interop with obj-c or Swift). I think a better, far less limiting approach that will be viable, and I hope to try, will be to create a shared library, that can be shared between an android and iOS project. Then the Android UI can be written in Java / Kotlin, and the iOS UI can be written in ObjC / Swift, and then they can interact with the shared kotlin library.
☝️ 1
Xamarin takes a similar approach to what I described above, and code sharing between projects is around 60-70%. We should be able to achieve some similar numbers with kotlin-native hopefully
r
Ooh, yeah. Thank u, this clarifies a lot. Now I can see how far we can go with KtN.
u
Is there any official statement of what level of interop is being planned? Or is this guessing?
b
I think this is the best approach anyway; the user's experience is completely native, even though the code that drives it is shared
u
Agreed