Skip to content

Commit

Permalink
Revert inset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gh123man committed Nov 26, 2024
1 parent c257743 commit 589be1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/LazyPager/ZoomableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ZoomableView<Element, Content: View>: UIScrollView, UIScrollViewDelegate {
bouncesZoom = true
backgroundColor = .clear
alwaysBounceVertical = false
contentInsetAdjustmentBehavior = .scrollableAxes
contentInsetAdjustmentBehavior = .always
if config.dismissCallback != nil {
alwaysBounceVertical = true
}
Expand Down Expand Up @@ -156,7 +156,7 @@ class ZoomableView<Element, Content: View>: UIScrollView, UIScrollViewDelegate {
if allowScroll {
// Counteract content inset adjustments. Makes .ignoresSafeArea() work
contentInset = UIEdgeInsets(top: -safeAreaInsets.top, left: 0, bottom: -safeAreaInsets.bottom, right: 0)

if !isAnimating, config.dismissCallback != nil {
let offset = contentOffset.y
if offset < 0 {
Expand Down

0 comments on commit 589be1a

Please sign in to comment.