Hi, I got a module that's implemented in compose for android and swiftui for iOS. For convenience, I implement the android ui on the module on it AndroidMain variant, whereas for iOS, only the commonMain part are need to have a common presenter for both seen. That's working well except for one detail, in order to have the android part compiling, I need to add
which make sense to me, but I need to comment it to have the iOS part compiling, I tried moving it to androidTarget which work if I do a clean when I change target but that's as well not very convenient. Is there a better solution to this?
p
Pablichjenkov
11/29/2024, 12:37 AM
You could separate the UI in 2 separate modules, one for Android and one for iOS. But in general that's how you deal with that, restructuring the project modules.