Skip to content

Commit 2f74efb

Browse files
authored
Apply iOS 17.1+ containerView fix from PR slackhq#204
1 parent b2f5bd7 commit 2f74efb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PanModal/Controller/PanModalPresentationController.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ open class PanModalPresentationController: UIPresentationController {
177177
guard let containerView = containerView
178178
else { return }
179179

180+
/// Fix ios 17.1+ issue, https://github.com/slackhq/PanModal/pull/204
181+
if self.panContainerView.frame == .zero {
182+
self.adjustPresentedViewFrame()
183+
}
184+
180185
layoutBackgroundView(in: containerView)
181186
layoutPresentedView(in: containerView)
182187
configureScrollViewInsets()

0 commit comments

Comments
 (0)