I'm doing my custom Firebase InAppMessaging controllers and want use different presentation styles and make sure it will always show on top of everything in my app regardless of the view hierarchy.
Currently I'm trying to set a UIWindow and add the controller to it, but if I change the style of the controller to be form sheet the controller bellow turns to black screen.
window = UIWindow(frame: UIScreen.main.bounds)
let display = window!
display.rootViewController = controller;
display.makeKeyAndVisible()
display.isHidden = false
I want to present a view controller on top of everything with any type of presentation style (full screen, form sheet) or transparent background.
I'm not sure if what I'm doing is the correct way of doing it or if there is something else that I'm missing?