Uiviewcontroller
UIViewController
Intro
UIViewController is the basic View Controller in iOS - Swift
let vc = UIViewController()
vc.backgroundColor = .red
iOS 13 ViewController Changes
New changes brought in with iOS 13 is the dismissal option for UIViewControllers being presented via .pageSheet
& .formSheet
Turn off interactive dismissal
Option 1
viewController.isModalInPresentation = true
Option 2
func presentationControllerShouldDismiss(_ presentationController: UIPresentationController) -> Bool {
return false
}
SO | disable-the-interactive-dismissal-of-presented-view-controller