0

I am trying to add another UIWindow and make it makeKeyAndVisible above main window. But is appears as sheet (modal) not in fullScreen mode

I've tried to user modalPresentationStyle on viewController and nothing changes.

 rootViewController = baseViewController
        windowLevel = .alert
        backgroundColor = .clear
        isOpaque = false
        rootViewController?.modalPresentationStyle = .fullScreen
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143

1 Answers1

0

try with this

rootViewController = baseViewController
    windowLevel = .alert
    backgroundColor = .clear
    isOpaque = false
    rootViewController?.modalPresentationStyle = .fullScreen
self.present(rootViewController, animated: true, completion: nil)
Saurabh Pathak
  • 879
  • 7
  • 10