I have UIViewController add to my view by present. Now user can remove this view by drag to bottom of screen. How can I disable it?
I try by
view.isUserInteractionEnabled = false
and
override func viewDidLoad() {
        self.transitioningDelegate = self
    }
extension MyViewController: UIViewControllerTransitioningDelegate {
    func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
        return nil
    }
    func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        return nil
    }
}
But user still can dismiss it.
 
     
     
    