Hi folks, I'm working on a Compose Multiplatform project that mixes native and compose UIs. I'm using a
NativeViewFactory pattern where some views are defined in an interface and implemented in Swift, which is then injected. This is possible because the entrypoint of the app is Swift, where it can define an implementation and pass it into the Kotlin side.
I'm running into a problem with testing, where I am testing Composables in a more isolated fashion, and more importantly, from a Kotlin entrypoint (in commonTest). It's a composeUiTest. At this point there is no injected NativeViewFactory, so the test can't proceed on iOS.
Is there an existing pattern for testing Composables with Swift views embedded within? Seems like it would require a way to call Swift code before calling the composable. Or is there another method? Thanks!