So I have a kmp project which targets ios, macos, watchos, etc. into one XCFramework. I put in the compose mp successfully (mostly). The only issue is the watchOS target, which fails since there are no foundation, material(s) libs available. I tried unsuccessfully to split it into two projects, but I quickly run into a circular dependency. And I cannot currently think of a proper solution.
Optimally, the foundation and material could easily target watchOS, since it is a subset of iOS. I wonder if this is in the cards for us one day?
d
Dima Avdeev
04/21/2023, 6:16 AM
watchOS is an interesting target, but for now it is hard to support in Compose.
You still may split projects in this way:
• shared-model (Kotlin)
• shared-UI (Kotlin + Compose)
• use shared-UI in iOS App
• use shared-model in WatchOS