Join Slack
Powered by
is there a simple tutorial on how to call function...
# multiplatform
j
Jayden King
05/12/2024, 11:16 AM
is there a simple tutorial on how to call functions from the shared module in Swift code? I found this, but it's too complex for me
https://kotlinlang.org/docs/native-objc-interop.html
j
Jacob Ras
05/12/2024, 4:02 PM
I think you mean calling Kotlin code from Swift? If so:
https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-integrate-in-existing-app.html#use-the-shared-module-from-swift
j
Jayden King
05/13/2024, 11:44 AM
I was looking for a bit more detail than that, like how use different Kotlin files. I ended up figuring out that dots are replaced with underscores, so in order to use
MainViewController.ios.kt
I needed to write
MainViewController_iosKt
in Swift
2
Views
Open in Slack
Previous
Next