Hello everyone! does anyone possibly know how to p...
# compose-ios
n
Hello everyone! does anyone possibly know how to present a UIViewController non modally on top of another UIViewController that has formsheet presentation style? So basically I have a form sheet and I want to present another VC on top of it and I want to be able to interact with the form sheet while the second VC is presented. Any help is much appreciated!
r
Hello I am doing it like that and kinda works ok
Copy code
override fun presentPaywall(appTheme: AppTheme, onCompletion: () -> Unit) {
        val rootVC = UIApplication.sharedApplication.keyWindow?.rootViewController
        val s = ComposeUIViewController(
            content = {
                //Your composable
            }
        )
        rootVC?.presentViewController(s, animated = true, completion = null)
    }
n
Hi! I meant having 2 ComposeUIViewControllers on top of each other with the lower one being a form sheet and being able to interact with the form sheet while the second view controller is presented on top