In iOS 13 there is a new behaviour for modal view controller when being presented.
Now it\'s not fullscreen by default and when I try to slide down, the app just dis
One Liner:
modalPresentationStyle
is required to be set on the navigationController which is being presented.
iOS 13 and below iOS version fullScreen with
overCurrentContext
andnavigationController
Tested Code
let controller = UIViewController()
let navigationController = UINavigationController(rootViewController: controller)
navigationController.modalPresentationStyle = .overCurrentContext
self.navigationController?.present(navigationController, animated: true, completion: nil)
modalPresentationStyle require to set at navigationController.