From 3ab27cf980cb40a0f094613abff4dee93c9b7bd1 Mon Sep 17 00:00:00 2001 From: Semen Kologrivov Date: Wed, 29 Nov 2023 14:13:22 +0700 Subject: [PATCH] fix: 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 c986e796..0c1dfb41 100644 --- a/PanModal/Controller/PanModalPresentationController.swift +++ b/PanModal/Controller/PanModalPresentationController.swift @@ -180,6 +180,10 @@ open class PanModalPresentationController: UIPresentationController { guard let containerView = containerView else { return } + + if self.panContainerView.frame == .zero { + self.adjustPresentedViewFrame() + } layoutBackgroundView(in: containerView) layoutPresentedView(in: containerView)