Stefan Oltmann
08/18/2023, 2:56 PMimport androidx.compose.ui.window.ComposeUIViewController
import com.ashampoo.photos.compose.ImageLoader
import com.ashampoo.photos.compose.ui.ContentView
import com.ashampoo.photos.shared.state.AppStore
fun MainViewController(
    store: AppStore,
    imageLoader: ImageLoader,
    supportId: String
) = ComposeUIViewController {
    ContentView(
        store = store,
        imageLoader = imageLoader,
        supportId = supportId,
        skiaGraphicsApi = null
    )
}
On Swift side it demands an "SharedAppStore" instance, which is incompatible with the "AppStore" created by the constructor.
Does this happen because I have two different XCFrameworks? ("compose" depends on "shared")
Is there any way around it or do I have to merge my modules "shared" (non-ui-code) with "compose" (ui-code)?Landry Norris
08/18/2023, 5:26 PMLandry Norris
08/18/2023, 5:27 PMStefan Oltmann
08/18/2023, 5:29 PM