I'm trying to present UINavigationController as a small window using the following way. It works fine on iPads but it still displays fullScreen on iPhones. Any tips on what I am doing wrong will be greatly appreciated!
class LoginNewNavigationController: UINavigationController{
private var windowSize: CGSize!
init() {
let rootVc = LoginNewIPadViewController.init()
super.init(rootViewController: rootVc)
self.configureSizes()
self.preferredContentSize = self.windowSize
self.modalPresentationStyle = .formSheet
self.showNavigationBar = false
self.view.backgroundColor = .clear
self.view.layer.cornerRadius = 25
}
}