Hi everyone! I'm trying to use a SwiftUI view inside Compose Multiplatform by following this. I achieved it but now I have a question: How can I pass the text "SwiftUI in Compose Multiplatform" from outside? I mean, from the common part. Thanks!
Copy code
Main_iosKt.ComposeEntryPointWithUIViewController(createUIViewController: { () -> UIViewController in
let swiftUIView = VStack {
Text("SwiftUI in Compose Multiplatform")
}
return UIHostingController(rootView: swiftUIView)
})