Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions ios/PagerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,17 @@ struct PagerView: View {
collectionView.showsVerticalScrollIndicator = false
collectionView.showsHorizontalScrollIndicator = false

// The vertical pager rotates this horizontal scroll view by 90 degrees.
// Native edge effects would rotate with it and cover the page sideways.
if isVertical, #available(iOS 26.0, *) {
if #available(iOS 26.0, *) {
// The top edge effect can obscure pages beneath transparent headers.
collectionView.topEdgeEffect.isHidden = true
collectionView.bottomEdgeEffect.isHidden = true
collectionView.leftEdgeEffect.isHidden = true
collectionView.rightEdgeEffect.isHidden = true

// The vertical pager rotates this horizontal scroll view by 90 degrees.
// Native edge effects would rotate with it and cover the page sideways.
if isVertical {
collectionView.bottomEdgeEffect.isHidden = true
collectionView.leftEdgeEffect.isHidden = true
collectionView.rightEdgeEffect.isHidden = true
}
}

if scrollDelegate.originalDelegate == nil {
Expand Down
Loading