Skip to content

Commit

Permalink
Update PanModalPresentationDelegate.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
racechao committed Apr 2, 2024
1 parent b2f5bd7 commit 7864c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PanModal/Delegate/PanModalPresentationDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7864c9a

Please sign in to comment.