One more general question: The situations is that we already have backend and android app written in kotlin. They share a library with a lot of business logic. Now I’m thinking how it would be best to approach iOS app - should we go for including common lib and writing UI, DB and stuff with swift or is it safe to write UI stuff with kotlin too?
o
olonho
09/18/2018, 12:27 PM
I guess it mostly depends on which language people on your team prefer, generally all Apple frameworks are available to Kotlin code out of the box
j
Jaroslav
09/18/2018, 12:34 PM
What about third party libraries? Is it possible to use swift libraries (for example downloaded with cocoapods) from kotlin code?
o
olonho
09/18/2018, 12:42 PM
it depends on the library. If it is written in Objective-C or in Swift with
@objc
attribute - it could be called from Kotlin/Native
olonho
09/18/2018, 12:42 PM
Safer option is to start with the common code only