Skip to content

Commit 589be1a

Browse files
committed
Revert inset fix
1 parent c257743 commit 589be1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LazyPager/ZoomableView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ZoomableView<Element, Content: View>: UIScrollView, UIScrollViewDelegate {
7373
bouncesZoom = true
7474
backgroundColor = .clear
7575
alwaysBounceVertical = false
76-
contentInsetAdjustmentBehavior = .scrollableAxes
76+
contentInsetAdjustmentBehavior = .always
7777
if config.dismissCallback != nil {
7878
alwaysBounceVertical = true
7979
}
@@ -156,7 +156,7 @@ class ZoomableView<Element, Content: View>: UIScrollView, UIScrollViewDelegate {
156156
if allowScroll {
157157
// Counteract content inset adjustments. Makes .ignoresSafeArea() work
158158
contentInset = UIEdgeInsets(top: -safeAreaInsets.top, left: 0, bottom: -safeAreaInsets.bottom, right: 0)
159-
159+
160160
if !isAnimating, config.dismissCallback != nil {
161161
let offset = contentOffset.y
162162
if offset < 0 {

0 commit comments

Comments
 (0)