I am trying to presenting BViewController
(subclass of UIViewController
) from AViewController
(sub class of UIView
controller). Its presenting view without issues but after dismissing view controller from BViewController
to AViewController
its not dismissing properly.
This issue occurs only in iPhone 13 mini and iPhone 12 mini (simulators). Remaining devices it is working fine.
Presenting view controller code
func pushToNextVC()
{
let vc = getStoryBoard()?.instantiateViewController(withIdentifier: "NextVC") as! NextVC
vc.modalPresentationStyle = .overFullScreen
self.present(vc, animated: true, completion: nil)
}
Dimiss view controller code
@IBAction func backTOVC(_ sender: UIButton) {
self.dismiss(animated: true, completion: nil)
}