Skip to content

[iOS] Hide UIScrollEdgeEffect on FlutterSemanticsScrollView and scroll-to-top UIScrollView on iOS 26+ - #195356

Merged
auto-submit[bot] merged 6 commits into
flutter:masterfrom
apooverma:fix-semantics-scroll-edge-effect
Nov 20, 2026
Merged

auto-submit[bot] merged 6 commits into
flutter:masterfrom
apooverma:fix-semantics-scroll-edge-effect

Conversation

@apooverma

@apooverma apooverma commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

On iOS 26+, UIScrollView automatically applies UIScrollEdgeEffect (a blur/tint edge effect) when its content is scrolled. Because FlutterSemanticsScrollView (an invisible accessibility proxy UIScrollView mirroring the Dart scrollable's contentOffset for assistive technologies) and the scroll-to-top helper UIScrollView created in -[FlutterViewController loadView] both have non-zero contentOffset values while drawing nothing themselves, iOS 26+ renders an unintended blur/tint effect along the scroll edges over the Flutter canvas.

This change hides topEdgeEffect, bottomEdgeEffect, leftEdgeEffect, and rightEdgeEffect on both FlutterSemanticsScrollView and FlutterViewController's scroll-to-top helper UIScrollView on iOS 26+, and adds corresponding unit tests in SemanticsObjectTest.mm and FlutterViewControllerTest.mm.

Fixes #192372

Pre-launch Checklist

On iOS 26+, UIScrollView automatically applies UIScrollEdgeEffect (a blur/tint edge effect) when scrolled. Because FlutterSemanticsScrollView is an invisible accessibility proxy UIScrollView that mirrors the Dart scrollable's contentOffset for VoiceOver and assistive technologies, iOS 26 renders an unintended top/bottom/left/right blur bar over the Flutter canvas whenever the semantics scroll view has a non-zero offset.

Hide topEdgeEffect, bottomEdgeEffect, leftEdgeEffect, and rightEdgeEffect on FlutterSemanticsScrollView on iOS 26+.
@apooverma
apooverma requested a review from a team as a code owner October 26, 2026 20:21
@github-actions github-actions Bot added platform-ios iOS applications specifically engine flutter/engine related. See also e: labels. team-ios Owned by iOS platform team labels Oct 26, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces changes to hide scroll edge effects on FlutterSemanticsScrollView and adds a corresponding unit test. The feedback identifies that the preprocessor and runtime checks use an invalid iOS version (iOS 26.0), which results in the code being compiled out and not executed. Additionally, the feedback recommends safely accessing these private UIScrollView properties using respondsToSelector: and valueForKey: to prevent potential runtime crashes and App Store rejection.

@chingjun chingjun added the CICD Run CI/CD label Oct 28, 2026
@cbracken
cbracken requested a review from LouiseHsu November 5, 2026 22:38

@LouiseHsu LouiseHsu 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.

Looks good! The linked issue also mentions the scroll-to-top helper UIScrollView created in [FlutterViewController loadView]. Do you think you could also apply the fix there?

@apooverma

Copy link
Copy Markdown
Contributor Author

Looks good! The linked issue also mentions the scroll-to-top helper UIScrollView created in [FlutterViewController loadView]. Do you think you could also apply the fix there?

Applied the same fix in FlutterViewController as well

@apooverma apooverma changed the title [iOS] Hide UIScrollEdgeEffect on FlutterSemanticsScrollView on iOS 26+ [iOS] Hide UIScrollEdgeEffect on FlutterSemanticsScrollView and scroll-to-top UIScrollView on iOS 26+ Nov 9, 2026
@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Nov 9, 2026
@apooverma
apooverma requested a review from LouiseHsu November 9, 2026 10:46
@LouiseHsu LouiseHsu added the CICD Run CI/CD label Nov 10, 2026

@LouiseHsu LouiseHsu 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.

Thanks for addressing the comments! This LGTM, but needs a second reviewer :)

@LouiseHsu
LouiseHsu requested review from a team and LongCatIsLooong November 12, 2026 01:33
@LongCatIsLooong LongCatIsLooong added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 19, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 19, 2026
@auto-submit

auto-submit Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/195356, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Nov 19, 2026
@LongCatIsLooong LongCatIsLooong added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels Nov 19, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 20, 2026
@auto-submit

auto-submit Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/flutter/195356, Failed to enqueue flutter/flutter/195356 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected..

@LongCatIsLooong LongCatIsLooong added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 20, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into flutter:master with commit 41e3dc8 Nov 20, 2026
35 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 20, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Nov 21, 2026
flutter/flutter@b34b017...5423f94

2026-11-21 [email protected] Make an Impeller render target from a Vulkan backing store (flutter/flutter#193003)
2026-11-21 [email protected] Persist the vulkan shader cache on teardown (flutter/flutter#197017)
2026-11-21 [email protected] [flutter_tools] Preserve rolling log buffer for Chromium crash diagnostics (flutter/flutter#196037)
2026-11-21 [email protected] Roll Skia from 8845aecd8c53 to 39e0ad394168 (2 revisions) (flutter/flutter#197094)
2026-11-21 [email protected] Adds redirect for listen package in api.flutter.dev (flutter/flutter#197068)
2026-11-21 [email protected] Roll Dart SDK from c6857d58f0ec to fc86f5a42779 (1 revision) (flutter/flutter#197086)
2026-11-20 [email protected] iOS: Discard pending platform view disposals on reset (flutter/flutter#197026)
2026-11-20 [email protected] Tolerate a missing flutter/service_worker handler in the web first-frame notification (flutter/flutter#196329)
2026-11-20 [email protected] Roll Skia from 9aafbb357743 to 8845aecd8c53 (2 revisions) (flutter/flutter#197080)
2026-11-20 [email protected] Prevent crash in tessellator with extreme radii (flutter/flutter#196648)
2026-11-20 [email protected] Windows: in the flutter tool, always close the file handle in _download even when an HTTP request fails so that it is not left open and becomes undeletable (flutter/flutter#197061)
2026-11-20 [email protected] Roll Skia from b61640825c5b to 9aafbb357743 (7 revisions) (flutter/flutter#197066)
2026-11-20 [email protected] Swap dependabot reviewers (flutter/flutter#196995)
2026-11-20 [email protected] [iOS] Hide UIScrollEdgeEffect on FlutterSemanticsScrollView and scroll-to-top UIScrollView on iOS 26+ (flutter/flutter#195356)
2026-11-20 [email protected] [devicelab] Enable Vulkan GPU tracing by default on Android Impeller PerfTests (flutter/flutter#196822)
2026-11-20 [email protected] Roll Dart SDK from 3b5f45d812f8 to c6857d58f0ec (1 revision) (flutter/flutter#197063)
2026-11-20 [email protected] [flutter_tools] Delete flutter.version.json when switching channels (flutter/flutter#196943)
2026-11-20 [email protected] Update desktop TESTOWNERS (flutter/flutter#196930)
2026-11-20 [email protected] [web] Release CanvasKit WebGL contexts and surfaces when a view is removed (flutter/flutter#196816)
2026-11-20 [email protected] [Linux] Hide libunwind symbols in libflutter_linux_gtk.so (flutter/flutter#196451)
2026-11-20 [email protected] Roll Skia from a1edf5c2ea5c to b61640825c5b (1 revision) (flutter/flutter#197058)
2026-11-20 [email protected] [flutter_tools] Update --web-content-hash serving tip to cover assets and canvaskit (flutter/flutter#196908)
2026-11-20 [email protected] Send a semantics update when only the identifier changes (flutter/flutter#196460)
2026-11-20 [email protected] Roll Packages from 81b7c44 to 898818d (11 revisions) (flutter/flutter#197056)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-ios iOS applications specifically team-ios Owned by iOS platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS 26] Status-bar scroll-edge effect blurs Flutter content because FlutterSemanticsScrollView mirrors the Dart scroll offset

4 participants