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

patjackson52

11/07/2018, 6:12 PM
Are there limitations on what is available from in Swift in MPP project? In common kotlin code I have some top level functions and vals. They do not appear to be accessible from swift.
r

russhwolf

11/07/2018, 6:36 PM
How are you trying to call them? Top-level things generally translate to Swift as
FileNameKt.foo()
, similar to Java.
p

patjackson52

11/07/2018, 6:55 PM
Oh course! thank you…
t

tapchicoma

11/07/2018, 8:17 PM
hm, is there annotation like
@file:JvmName("FileNameUtils")
but for this case, so
FileNameKt
becomes
FileNameUtils
?
o

olonho

11/08/2018, 6:19 AM
better ask such questions on #kotlin-native, it has nothing to do with MPP
4 Views