Swift désactiver le modal rejeter Swift

viewController.isModalInPresentation = true

// or

func presentationControllerShouldDismiss(_ presentationController: UIPresentationController) -> Bool {
    return false
}
Rens