I have been trying to show UIViewController
on the whole screen while using the present modal?
here is the output image
[![enter image description here][1]][1]
I have xib viewController where I am trying to send value to another viewController using the present method but it does not fit fullscreen.
Here is the code :
let vc = TabBarViewController()
vc.processDefID = keyVal
vc.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
vc.modalPresentationStyle = .overFullScreen //or .overFullScreen for transparency
self.present(vc, animated: true, completion: nil)
ANother mehtod tried:
var clientView: UIViewcontroller
let V = TabBarViewController()
self.clientView?.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
self.clientView?.addChild(V)
self.clientView?.view.addSubview(V.view)
V.processDefID = keyVal
V.view.frame = (self.clientView?.view.bounds)!
V.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
V.modalPresentationStyle = .fullScreen
self.present(V, animated: true, completion: nil)