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)