One more general question: The situations is that ...
# kotlin-native
j
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
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
What about third party libraries? Is it possible to use swift libraries (for example downloaded with cocoapods) from kotlin code?
o
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
Safer option is to start with the common code only
j
ok, thanks for reply 🙂