Swift Wyłącz modalne odrzucenie Swift

viewController.isModalInPresentation = true

// or

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