hellou everyone, I have kinda a noob question that...
# ios
d
hellou everyone, I have kinda a noob question that I once knew. How do I expose and instantiate swift class (that implemented some interface from common module) inside
iosMain
module?
f
everything inside iosMain can be access directly from the iOS application
d
Reverse is what i want
i guess I can just inject it through koin
inside the ios application
s
So you have an interface most probably inside the
commonMain
source set of the shared module. And the Swift class is inside the ios app? If that's the case, you should be able to access the interface from there
d
Yeah yeah, I can inject it through koin. I tlought it could be resolved from within
iosMain
module which wasn't a smart idea since it would introduce a circular dependcy as iosApp depends on composeApp
👍 1