-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] iOS NavigationBar background flickering on navigation #9943
Description
Description
On iOS, the navigation bar of a navigation page will ficker when navigating. Additionally the default NaigationPage BarBackgroundColor on iOS appears different.
This only happens if the BarBackgroundColor of the NavigationPage has not been set.
I have not tested, but I believe this to have come from this commit 271e41c#diff-efa21a065745b4e261efc4bf6a5d8784R641-R643 (same for #9456)
Steps to Reproduce
From source:
- Create a NavigationPage with a ContentPage in it.
- Add some method to push another ContentPage onto the navigation stack.
- Observe the flickering (tested on iPhone 11, iOS 13.3 simulator)
From repro:
- Open project
- Click "PushAsync"
- Observe the flickering (tested on iPhone 11, iOS 13.3 simulator)
Expected Behavior
Navigation bar appears the same throughout navigation.
Actual Behavior
Navigation bar flickers to other colours throughout navigation. This could be translucancy changing?
Basic Information
- Version with issue: 4.5.0.356, 4.6.0.379-pre1, (EDIT: 4.6.0.772)
- Last known good version: 4.4.0.991757
- IDE: Visual Studio Community 2019 for Mac, Version 8.4.8 (build 2)
- Platform Target Frameworks:
- iOS: 11.3.1
- Nuget Packages: Xamarin.Forms
Screenshots
I think the gifs may be hard to see the issue, so I am also attaching the direct mp4 screen recordings.
Reproduction Link
Project is called MasterDetailPageNavColorTest because I originally thought this was a MasterDetailPage issue.
MasterDetailPageNavColorTest.zip
Workaround
Setting a BarBackgroundColor of the NavigaitonPage fixes this issue.