Hi all, am working with the latest KMP template, w...
# multiplatform
a
Hi all, am working with the latest KMP template, where the shared code is in a separate module and the main
composeApp
module adds the
shared
module as a dependency. on iOSApp i have
Copy code
import ComposeApp
am able to access classes in
ComposeApp
However am not able to access classes in the
shared
module. am getting cannot find 'MySharedClass' in scope. My understanding is that if the
shared
module is added as a dependency to
ComposeApp
, then all the classes should be available in the generated framework. Anyone facing similar issue? could we be having any documentation for this? any solutions?
i
Can you create an issue and attach your project, please?
r
a
@russhwolf 👌 the documentation is spot on, i was using implementation instead of api, when adding the library dependency