Hey there, I have a Compose Multiplatform project with two apps: app1 and app2. Both apps use a shared Kotlin module that contains UI, utilities, and resources. Each app also has its own independent iOS project (iosApp1 and iosApp2).
The shared Kotlin module defines interfaces for native iOS services. Whenever I add a new service, I have to implement it separately in both iOS projects.
My questions are:
1. Can I create a shared Swift library that depends on the shared Kotlin module (via an XCFramework), implement the iOS-specific services once in that Swift library, and then link it to both iOS projects to avoid duplication?
2. Would this approach cause duplication of code and resources, since the shared Kotlin module is already used in both app1 and app2, and then gets bundled again through the XCFramework into the Swift library?