From ecba796d8c306b3dab358db4ac402a0808b19010 Mon Sep 17 00:00:00 2001 From: Oscar Costoya Vidal Date: Fri, 3 Nov 2023 17:04:02 +0100 Subject: [PATCH] Fix ios 17.1+ issue --- PanModal/Controller/PanModalPresentationController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PanModal/Controller/PanModalPresentationController.swift b/PanModal/Controller/PanModalPresentationController.swift index 11fb2a6e..297ed7a1 100644 --- a/PanModal/Controller/PanModalPresentationController.swift +++ b/PanModal/Controller/PanModalPresentationController.swift @@ -177,6 +177,10 @@ open class PanModalPresentationController: UIPresentationController { guard let containerView = containerView else { return } + if self.panContainerView.frame == .zero { + self.adjustPresentedViewFrame() + } + layoutBackgroundView(in: containerView) layoutPresentedView(in: containerView) configureScrollViewInsets()