Swift deaktivieren modal entlassen Swift

viewController.isModalInPresentation = true

// or

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