Join Slack
Powered by
Is it possible to include Swift/Obj-C code in the ...
# multiplatform
i
Ivan Đorđević
11/10/2021, 12:28 PM
Is it possible to include Swift/Obj-C code in the iOS sourceset (
iosMain
) and interact with it from Kotlin code?
s
Sam
11/10/2021, 12:32 PM
No. You'll need to produce a framework from that code and and interact with it like any other dependency.
👍 1
i
Ivan Đorđević
11/10/2021, 12:33 PM
Thanks
h
hfhbd
11/10/2021, 1:41 PM
Objective C code works: either via platform code or using custom c definitions.
c
coolcat
11/10/2021, 2:57 PM
Very similar question asked on Monday
https://kotlinlang.slack.com/archives/C3PQML5NU/p1636388257416200
i
Ivan Đorđević
11/10/2021, 3:13 PM
Thank you!
Open in Slack
Previous
Next