I was instrumenting a Compose Multiplatform app wi...
# swift-export
c
I was instrumenting a Compose Multiplatform app with Swift Export. I ran into this error I think because the Compose Controller function is implemented through UIKit through Objective-C. Is there a recommended solution to bring Swift Export code modules directly into a Compose Multiplatform app? Or is this simply not possible yet and I should focus on making separate Swift Export modules that don't expose any Compose code?
Copy code
> A failure occurred while executing org.jetbrains.kotlin.gradle.plugin.mpp.apple.swiftexport.internal.SwiftExportAction

   > Can't translate return type in fun MainViewController(): platform.UIKit.UIViewController: Symbol not found for platform/UIKit/UIViewController
Copy code
// from androidx.compose.ui.window
import platform.UIKit.UIViewController

fun ComposeUIViewController(content: @Composable () -> Unit): UIViewController =
    ComposeUIViewController(configure = {}, content = content)
s
Hey.
@Composable
filtering (like it is done in Objective-C export) and export of interop types (like
platform.UIKit.UIViewController
) are not support yet. So yeah, the best way right now is to avoid modules with Compose :)
thank you color 1