Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] iOS NavigationBar background flickering on navigation #9943

@beeradmoore

Description

@beeradmoore

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:

  1. Create a NavigationPage with a ContentPage in it.
  2. Add some method to push another ContentPage onto the navigation stack.
  3. Observe the flickering (tested on iPhone 11, iOS 13.3 simulator)

From repro:

  1. Open project
  2. Click "PushAsync"
  3. 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

Xamarin.Froms 4.4.0.991757
nav_xf_4 4 0 991757

Xamarin.Forms 4.5.0.356
nav_xf_4 5 0 356

I think the gifs may be hard to see the issue, so I am also attaching the direct mp4 screen recordings.

nav_flicker.zip

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.

Metadata

Metadata

Assignees

Labels

4.5.0regression on 4.5.0a/navbarblockerIssue blocks next stable release. Prioritize fixing and reviewing this issue.e/3 🕒3i/regressionin-progressThis issue has an associated pull request that may resolve it!p/iOS 🍎t/bug 🐛

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions