From 19ee4c67b2b15fb4021bd059c8fe384aef3d2ebf Mon Sep 17 00:00:00 2001 From: Pavel Pakalnis Date: Mon, 15 Jan 2024 11:51:49 +0100 Subject: [PATCH] Attempt to fix ios 17.2 issues --- PanModal/Delegate/PanModalPresentationDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PanModal/Delegate/PanModalPresentationDelegate.swift b/PanModal/Delegate/PanModalPresentationDelegate.swift index 24264b74..18d7759f 100644 --- a/PanModal/Delegate/PanModalPresentationDelegate.swift +++ b/PanModal/Delegate/PanModalPresentationDelegate.swift @@ -52,7 +52,7 @@ extension PanModalPresentationDelegate: UIViewControllerTransitioningDelegate { Changes in size class during presentation are handled via the adaptive presentation delegate */ public func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? { - let controller = PanModalPresentationController(presentedViewController: presented, presenting: presenting) + let controller = PanModalPresentationController(presentedViewController: presented, presenting: presenting ?? source) controller.delegate = self return controller }