Ahmed Mourad
09/22/2023, 10:00 PMAlexander Zhirkevich
09/23/2023, 8:30 AMAhmed Mourad
09/23/2023, 12:00 PMAlexander Zhirkevich
09/23/2023, 12:15 PMDima Avdeev
09/23/2023, 9:00 PMAhmed Mourad
09/23/2023, 9:22 PMviewDidLoad
of each of the swift controllers I call this:
@OptIn(ExperimentalForeignApi::class)
fun UIViewController.embed(controller: UIViewController, into: UIView) {
this.addChildViewController(controller)
into.addSubview(controller.view)
controller.view.setFrame(into.bounds)
controller.didMoveToParentViewController(this)
}
and I pass it the compose controller and the root viewDima Avdeev
09/24/2023, 12:58 AMAhmed Mourad
09/24/2023, 1:34 AMElijah Semyonov
09/25/2023, 3:17 PM1.5.10
. This scenario (integrating ComposeUIViewController into native Navigation/Modal controllers) was the target for this fix.Ahmed Mourad
09/25/2023, 3:59 PM