iOS Development With Kotlin Multiplatform: Tips and Tricks

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น •

  • @vaibhavpatil8297
    @vaibhavpatil8297 ปีที่แล้ว +2

    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?

    • @StreetsOfBoston
      @StreetsOfBoston ปีที่แล้ว +3

      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.

  • @surendharrajendran7454
    @surendharrajendran7454 10 หลายเดือนก่อน

    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 ?

  • @yasserakbbach708
    @yasserakbbach708 ปีที่แล้ว

    it's like "thinking in KMM" as "thinking in compose" from the Android team

  • @MrPhiltz77
    @MrPhiltz77 ปีที่แล้ว +2

    bring the Swift interop!!!

  • @j2shoes288
    @j2shoes288 10 หลายเดือนก่อน +1

    Still a poor product