iOS Development With Kotlin Multiplatform: Tips and Tricks

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 6

  • @surendharrajendran7454
    @surendharrajendran7454 9 місяців тому

    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 ?

  • @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.

  • @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 9 місяців тому +1

    Still a poor product