Skip to content

fix(ios): Hide horizontal pager top scroll-edge effect - #1178

Merged
troZee merged 1 commit into
callstack:mainfrom
erickreutz:eric/horizontal-pager-top-edge-effect
Oct 14, 2026
Merged

troZee merged 1 commit into
callstack:mainfrom
erickreutz:eric/horizontal-pager-top-edge-effect

Conversation

@erickreutz

Copy link
Copy Markdown
Contributor

Fixes #1177.

Horizontal pagers can show a full-width iOS 26 scroll-edge blur over page content beneath a transparent native-stack header. The effect belongs to the SwiftUI paging collection view, so navigator-level scrollEdgeEffects options may never reach it.

Hide the collection view's top edge effect inside PagerView's existing introspection callback on iOS 26. Keep the existing bottom, left, and right suppression limited to vertical paging, preserving the behavior added in #1149. Older iOS versions and Android are unchanged.

Verified the corresponding backport to 8.0.2 in a rebuilt app on an iPhone 17 Pro simulator running iOS 26.5. Before the change, the pager rendered a visible top ScrollEdgeEffectView; after the change, its opacity is zero and artwork remains sharp beneath the header after a clean launch and horizontal swipes. The current main-branch change has passed typecheck, formatting, and lint with no errors. Physical-device and vertical-pager runtime checks remain outstanding.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change correctly addresses horizontal pagers while preserving existing vertical behavior.

0 open findings

What changed in this PR

Hides the iOS 26 top scroll-edge effect that obscures horizontal pager content beneath transparent headers.

Changes:

  • Hides the top edge effect for all pager orientations.
  • Retains remaining edge suppression for vertical pagers only.
File Description
ios/​PagerView.swift Adjusts iOS 26 collection-view edge-effect visibility.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@troZee

troZee commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Hello @erickreutz
Thank you for your contribution. Could you provide a video before and after?

@troZee
troZee enabled auto-merge (squash) October 14, 2026 07:14
@troZee
troZee disabled auto-merge October 14, 2026 08:01
@troZee
troZee merged commit 1ae7eb6 into callstack:main Oct 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Horizontal pager adds scroll-edge blur beneath transparent headers on iOS 26

4 participants