Hi, I have cocoapods framework. How do i call this...
# compose-ios
j
Hi, I have cocoapods framework. How do i call this framework from kotlin? I am installing like this
k
Does it have an objc api?
j
k
Kotlin has only an objc interop
thank you color 1
a
@Javokhir Savriev This specific library seems to have @objc annotations on public types, so the interop should work. Have you tried importing it as
Copy code
import cocoapods.DSF_QRCode.*
in
iosMain
?
k
Oh! My fail! 🙂 It works!
Copy code
pod("DSF_QRCode") {
    version = "16.1.1"
    moduleName = "QRCode"
    extraOpts += listOf("-compiler-option", "-fmodules")
}
❤️ 1
@Javokhir Savriev 👆
j
thanks @Alex Azarov @Konstantin Tskhovrebov