From 64868359ff8810dee8b91880dc006c3532a27c71 Mon Sep 17 00:00:00 2001 From: Medet Tan Date: Fri, 12 Dec 2025 18:06:37 +0300 Subject: [PATCH] xcode-26 fix: Fix ios 17.1+ issue #204 --- PanModal/Controller/PanModalPresentationController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PanModal/Controller/PanModalPresentationController.swift b/PanModal/Controller/PanModalPresentationController.swift index 11fb2a6e..6467200a 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()