How would I invoke an iOS view from KMP code?
# multiplatform
r
How would I invoke an iOS view from KMP code?
r
That's inside, right? I was looking for opening a fully native view
d
You can absolutely host your native iOS view full-screen inside Compose, just give your interop element a “fill max size” modifier. For example:
Copy code
@Composable
fun FullScreenNativeView() {
    UIKitView(
        factory = { MyNativeUIView() },
        modifier = Modifier.fillMaxSize()
    )
}
To reduce boilerplate, you can use: https://touchlab.co/composeswiftbridge
h
What is the best practice to expose native iOS views to Kotlin code?