[Bug] iOS Navigation bar has a white-colored gradient #10034
Comments
Is there any specific reason you are setting the There are some other issues regarding this like #9952 and #9943. Is that something you are seeing as well? Would you be able to lift the code from your app that is showing this issue and put it in a reproduction project that shows the same behavior? |
|
This should be the Forms way of achieving what you want: MainPage = new NavigationPage(new MainPage())
{
BarBackgroundColor = Color.FromHex("46a1dc"),
BarTextColor = Color.FromHex("46a1dc")
}; Just tested and I did not see the behavior you are describing. I did create a little reproduction project and with your code I do see the issue. When using 4.4, no problem, upgrading to 4.5 and the issue shows. Also with the latest nightly this still happens. |
Yeah, so, as long as you are referring that as "issue", I believe that really is the issue, especially, as the fix you've provided above doesn't look like it should be done in real life apps by default. If you use any Mvvm-based frameworks, they usually even don't have that stage of initialization, as the pages are being created automatically by Mvvm engine. So, I hope you will find better way of handling that. |
(And I am not mentioning that this issue just overrides a standard behavior or basic iOS applications logic flow). |
The code I provided is just an example. These properties can also be set in XAML or through data-binding so that does not break anything in regard to MVVM. |
Yeah. It has nothing to do with a standard way of handling things with XF, like for example setting a default style for ContentPage in app.xaml StaticDictionary, I guess you would agree with that... |
@agat366 I solved this with: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/theming/theming. My app has the same navigation color in Android and in iOS. So, I only need add:
inside the <ResourceDictionary> in App.xaml |
@samhouts I think this is the same issue that I submitted to you about the flyout navigation, I am seeing a white gradient over the bottom tab bar when navigating but then it goes back to black after navigation completes. It almost looks like a progress bar going from left to right across the bottom of the screen |
After upgrading to one of the latest versions of XF, I am experiencing the white gradient over Navigation bar. It seems weird that I can't find any similar issues in google, but I've just checked and it doesn't seem like my code issue.
I am not sure which version it started from (4.3/4//5). I've just upgraded from 4.2 to 4.5 and it worked fine before the upgrade.
The app doesn't manipulate with NavigationBar settings much. The only customization is done on FinishLoading, like that:
And now I just can't get rid of that gradient whatever doing with the bar style...
Screenshots
The text was updated successfully, but these errors were encountered: