By using following method to call popup
func annoucementdisplay()
{
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let ivc = storyboard.instantiateViewController(withIdentifier: "PopUpViewController") as! PopUpViewController
ivc.modalTransitionStyle = .crossDissolve
ivc.modalPresentationStyle = .custom
let quiclvw = UIWindow(frame: UIScreen.main.bounds)
quiclvw.windowLevel = UIWindow.Level.alert
quiclvw.rootViewController = UIViewController()
quiclvw.makeKeyAndVisible()
let transition = CATransition()
transition.duration = 1.0
transition.type = CATransitionType.reveal
transition.subtype = CATransitionSubtype.fromBottom
quiclvw.layer.add(transition, forKey: kCATransition)
quiclvw.rootViewController?.present(ivc, animated: true, completion: nil)
}
It's working fine in Xcode 10.3, but when I run my code in Xcode 11.2.1,the popup is coming but it dismiss immediately after open.
I tried with
ivc.modalPresentationStyle = .fullScreen
But it's not working.