-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Flashing white area at the top of the screen when swiping a page containing platform views #119485
Comments
@0xZOne what's the exception? |
Flashing white area at the top of the screen when swiping as shown. |
@0xZOne Does it only happen on pro-motion devices? |
From Triage: Our guess is that there are frames in succession where a platform is and isn't in the scene. The thread merge and un-merge is probably causing on frame to not be displayed with |
Should be easily verified by turning on -[CALayer setPresentsWithTransation:YES] always. |
You could try that but I don't think we always have a transaction when off the main thread. In case no one pushes a transaction, we may deadlock. Advising caution. |
I'm not sure, but I only encountered it on ProMotion devices. |
Some observations:
|
It could be related: #118366 |
In case it's helpful - I encountered an issue that I suspect it is related to this. I tried out the example code in #86787. When using the latest main branch, it looks like the top area becomes transparent, so the platform view underneath is displayed (pic below). The release build is fine. |
Same observation found (#116640 (comment)), The native view will move up to top bar even if SafeArea is used. |
So far I only found this issues on Pro devices. I found such issues appear on iPhone 13 Pro and iPhone 14 Pro. However, on iPhone 11 Pro there is no such issue. |
It looks like an issue related to the pro-motion display. (iPhone 13 pro and iPhone 14 pro are the only iPhones support pro-motion) |
I can repro this on 6s and simulator in addition to 11 pro and 14 pro and 15 pro max. please see #142801 |
Steps to Reproduce
git clone -b task/displaylink git@github.com:0xZOne/platform_view_performance.git
cd platform_view_performance
flutter run
RPReplay_Final1675046104.MP4
flutter doctor -v
The text was updated successfully, but these errors were encountered: