On iOS, how can I get a hold of the underlying `UI...
# multiplatform
r
On iOS, how can I get a hold of the underlying
UIViewController
instance that's hosting the compose views?
m
Generated using KMP Wizard, ComposeUIViewController is created using a function inside iOS target `iosMain`:
Copy code
fun MainViewController() = ComposeUIViewController { App() }
and then exposed to swift, where it can be accessed/called by
Copy code
MainViewControllerKt.MainViewController()
where
MainViewControllerKt
comes from file name where the function is declared (here:
MainViewController.kt
)