Skip to content

Commit

Permalink
Fix landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gh123man committed Nov 27, 2024
1 parent 589be1a commit fe292e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Sources/LazyPager/PagerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class PagerView<Element, Loader: ViewLoader, Content: View>: UIScrollView, UIScr
backgroundColor = .clear
isPagingEnabled = true
delegate = self
contentInsetAdjustmentBehavior = .never
}


Expand Down
2 changes: 1 addition & 1 deletion Sources/LazyPager/ZoomableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,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)
contentInset = UIEdgeInsets(top: -safeAreaInsets.top, left: -safeAreaInsets.left, bottom: -safeAreaInsets.bottom, right: -safeAreaInsets.right)

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

0 comments on commit fe292e9

Please sign in to comment.