Thread
#multiplatform
    p

    patjackson52

    3 years ago
    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.
    russhwolf

    russhwolf

    3 years ago
    How are you trying to call them? Top-level things generally translate to Swift as
    FileNameKt.foo()
    , similar to Java.
    p

    patjackson52

    3 years ago
    Oh course! thank you…
    tapchicoma

    tapchicoma

    3 years ago
    hm, is there annotation like
    @file:JvmName("FileNameUtils")
    but for this case, so
    FileNameKt
    becomes
    FileNameUtils
    ?
    olonho

    olonho

    3 years ago
    better ask such questions on #kotlin-native, it has nothing to do with MPP