Hello, World! When using a kotlin mpp module expo...
# multiplatform
b
Hello, World! When using a kotlin mpp module exported as an iOS Framework, all
suspend
functions seem to be not visible from swift. I suppose this is a known limitation? Is there an official documentation about this?
a
b
thanks a lot ๐Ÿ‘
any insight as if
suspend
function are planned to be supported one day?
r
The language would need to support it, so no
The solution is to write your iOS code in Kotlin ๐Ÿ™‚
j
b
thanks a lot ๐Ÿ‘ ๐Ÿ™‚
Hello @Jonas Bark! (Sorry for the long delay) I've just tried your plugin, and I notice it doesn't want to work when I target
macosX64
(" Unable to find a matching variant".) Is it something for which you would like me to open a bug?
j
sure, go ahead
๐Ÿ‘ 1
b
also, I don't know what I'm doing wrong but I can't see the generated methods in the framework's .h file. Ideas?
j
is the kotlin file generated correctly? into which directory?
b
yes, in
commonMain
oh! nevermind! it's actually there ๐Ÿ™‚ I've been trolled by gradle (it appeared after a clean)
well ... maybe I'm too much of a noob in Swift, but I have no idea how to call the extension ๐Ÿ˜ž