can you guys create a video on how to call swift code in kotlin? I want to use seperate data layers for android and ios, and ios one has to be writen in swift.Can you make a video where I can fetch data in swift and pass that to domain layer in shared code?
Create an `interface` in the common Kotlin code, which will be exposed as a `protocol` to Swift and implement that protocol in Swift. Create a method in the common Kotlin code that allows you to inject/provide an implementation of that interface. Then call that method from Swift providing the Swift implementation of that interface/protocol. Basically, standard/manual Dependency Injection using dependency inversion.
can I use the navite ios library in swift for ios platform with cocoapods. As the KMM is still not interoperable the swift library will work ?
can you guys create a video on how to call swift code in kotlin?
I want to use seperate data layers for android and ios, and ios one has to be writen in swift.Can you make a video where I can fetch data in swift and pass that to domain layer in shared code?
Create an `interface` in the common Kotlin code, which will be exposed as a `protocol` to Swift and implement that protocol in Swift.
Create a method in the common Kotlin code that allows you to inject/provide an implementation of that interface.
Then call that method from Swift providing the Swift implementation of that interface/protocol.
Basically, standard/manual Dependency Injection using dependency inversion.
it's like "thinking in KMM" as "thinking in compose" from the Android team
bring the Swift interop!!!
Still a poor product