Hi everyone, i am having an issue importing ComposeUIViewController in iOS APP, i have a sample KMP project that am migrating to compose KMP.
Trying to import composable function in the iOS app using ComposeUIViewController but getting
Cannot find 'ComposeUIViewController' in scope
I can verify that the
Shared
framework is there but doesn't have
ComposeUIViewController
.
i have added
implementation(compose.ui)
to iosMain and commonMain dependencies.
Copy code
kotlin = "2.1.0"
compose-plugin = "1.7.1"
j
John O'Reilly
03/21/2025, 4:33 PM
I may have misunderstood but sounds like you're trying to use
ComposeUIViewontroller
in iOS Swift/SwiftUI code? It should be used instead in