From 3656f601766b6832c2ae1f4cecc5f5848ec32b3b Mon Sep 17 00:00:00 2001 From: nil Date: Fri, 15 Dec 2023 09:26:03 +0900 Subject: [PATCH] =?UTF-8?q?iOS=2017.1+=20=ED=8A=B9=EC=A0=95=20=EB=8B=A8?= =?UTF-8?q?=EB=A7=90=EC=97=90=EC=84=9C=20panModal=EB=A1=9C=20present?= =?UTF-8?q?=EB=A5=BC=202=EB=B2=88=20=EC=9D=B4=EC=83=81=ED=95=98=EB=A9=B4?= =?UTF-8?q?=202=EB=B2=88=20=EC=A7=B8=20=EB=B6=80=ED=84=B0=20dest=20viewCon?= =?UTF-8?q?troller=EA=B0=80=20=EB=85=B8=EC=B6=9C=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EC=9D=B4=EC=8A=88=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EC=82=AC=ED=95=AD=20=EC=A0=81=EC=9A=A9=20(https://github.com/s?= =?UTF-8?q?lackhq/PanModal/pull/204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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()