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
François
08/15/2024, 11:43 AM
everything inside iosMain can be access directly from the iOS application
d
Djuro
08/15/2024, 11:44 AM
Reverse is what i want
Djuro
08/15/2024, 12:48 PM
i guess I can just inject it through koin
Djuro
08/15/2024, 12:49 PM
inside the ios application
s
Sebastien Leclerc Lavallee
08/15/2024, 1:57 PM
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
Djuro
08/15/2024, 2:20 PM
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