We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f5bd7 commit 7864c9aCopy full SHA for 7864c9a
PanModal/Delegate/PanModalPresentationDelegate.swift
@@ -52,7 +52,7 @@ extension PanModalPresentationDelegate: UIViewControllerTransitioningDelegate {
52
Changes in size class during presentation are handled via the adaptive presentation delegate
53
*/
54
public func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {
55
- let controller = PanModalPresentationController(presentedViewController: presented, presenting: presenting)
+ let controller = PanModalPresentationController(presentedViewController: presented, presenting: presenting ?? source)
56
controller.delegate = self
57
return controller
58
}
0 commit comments