Hello, I don't get how i'm supposed to pass data f...
# compose-ios
l
Hello, I don't get how i'm supposed to pass data from cmp to swift ui. I already got how make static swiftui views with the following code . but for example i would like to pass the text from kotlin and a onClickText that I can use in kotlin :
Main_iosKt.ComposeEntryPointWithUIViewController(createUIViewController: { () -> UIViewController in
let swiftUIView = VStack {
Text("SwiftUI in Compose Multiplatform")
}
return UIHostingController(rootView: swiftUIView)
})
ok, I found what I needed. It was simple—I just needed to ask to clear things up in my head 😅