如何禁止iOS13新特性:模态弹出下滑返回

// modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior. When this is active, the presentation will prevent interactive dismiss and ignore events outside of the presented view controller's bounds until this is set to NO.

if (@available(iOS 13.0, *)) {
        UIViewController.modalInPresentation = YES;
}

你可能感兴趣的:(如何禁止iOS13新特性:模态弹出下滑返回)